Constants ... bug ...

francoisg

Active Member
Licensed User
Longtime User
Hi,
I know the language as it currently stands does not support constant values, so I did the following: Create a Code Module called "Constants"
---------------------------------------------
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
abc = "a"
def = "12#"
End Sub
---------------------------------------------

When I now use code completion it give me the following options:
Constants._abc
Constants._def
If I however use it like that the compiler complains - if I use Constants.abc it works ...
 

francoisg

Active Member
Licensed User
Longtime User
Happens in a different module. It works perfectly without using dim, the only thing is code completion does not work as expected!
 

agraham

Expert
Licensed User
Longtime User
Looks like there is some odd bug in Intellisense. You (Erel) see Process_Globals where I don't (different thread) and OP here sees, apparently reproducibly, something I have only managed to replicate once but you (Erel) don't see at all (I assume).
 

francoisg

Active Member
Licensed User
Longtime User
Sorry, no ...
I'll see if I can quickly slap something together and upload it for you ...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…