Public Const issue

I converted a VB6 project to .NET. The 2 .bas files in
the project became .vb of course.

The mainline .vb module declares a group of variables as
public. The procedures in the other module (.vb file)
thinks these variables are undeclared when they are
used.

How do I properly declare these variables so they are
globally accessible in the whole solution


Answer this question

Public Const issue

  • sortadan

    That doesn't seem to work. I'm currently declaring the variable in an old .bas file and referencing it in an old .frm file. They have both been converted to .vb files.
  • Trae

    Public Module

    Public Const Foo as integer = 42

    End Module



  • mthomasq3

    Ok, figured this one out on my own. I had an overlaod statement at the begining of my code that seems to be causing an issue with my decalring of variables. The syntax provided earlier works ok. Thanks for the help.
  • Public Const issue