Question : Strange behavior of Visual Basic 6 IDE

Hello!
I try to create a Public Enum in vb6, but i get a strange behavior of IDE. See atached code.
What i get is the 'GENERAL' member of enumeration changed automatically by the IDE to 'General'.
Is this a reserved keyword in VB6? I couldn't fint it between vb6 keywords.

Thanks for patience.


1:
2:
3:
4:
Public Enum Test
    GENERAL = 1
    CM = 2
End Enum

Answer : Strange behavior of Visual Basic 6 IDE

When I look into object browser turning on the option (View hidden members) I found the following.

Sub General()
   Member of VB.___MSJetSQLHelp

Looks like it's a hidden method in the MSJetSQLHelp Class

You could add a space to the end of the keywork but you might want to consider just adding a prefix to the beggining of your enum values.

1:
2:
3:
4:
5:
6:
7:
8:
9:
Public Enum Test
[GENERAL ] = 1
CM = 2
End Enum

Public Enum Test
eGENERAL= 1
eCM = 2
End Enum
Random Solutions  
 
programming4us programming4us