G
Guest
Hi, If I do this in module myConstants.bas:
Global const One = 1
Global const Two = 2
Global const three = 3
Then in my code, all I have to do is:
if ThisConstant = myConstants. and when I type the dot, Intellisense
shows all of the constants. But if I don't want hundreds of constants
to have to search through, I have groups of constants and try to use
enums. But I can't figure out how to get Intellisense. So If I do:
Public Enum Numbers
One = 1
Two = 2
Three = 3
end enum
I can't do myConstants follows by the dot I don't see anything. I have
to know in advance I want an enum called "Numbers". I want it to work
like .NET where I can do:
myConstants.Numbers.Three Or something similar that lets me have
Intellisense to be able to know what my constants are. It doesn't do
any good to have a module full of enumerations and then have to open
the file to see which one you want. Thanks.
-F
Global const One = 1
Global const Two = 2
Global const three = 3
Then in my code, all I have to do is:
if ThisConstant = myConstants. and when I type the dot, Intellisense
shows all of the constants. But if I don't want hundreds of constants
to have to search through, I have groups of constants and try to use
enums. But I can't figure out how to get Intellisense. So If I do:
Public Enum Numbers
One = 1
Two = 2
Three = 3
end enum
I can't do myConstants follows by the dot I don't see anything. I have
to know in advance I want an enum called "Numbers". I want it to work
like .NET where I can do:
myConstants.Numbers.Three Or something similar that lets me have
Intellisense to be able to know what my constants are. It doesn't do
any good to have a module full of enumerations and then have to open
the file to see which one you want. Thanks.
-F