|
-
Jan 13th, 2004, 08:44 AM
#4
Sleep mode
Originally posted by Grimfort
When you use it, its not a number, or an integer, its an enum type. If you do "MyVal.ToString" it will result in "DBAccess2000" for example, but if you want the number, it will convert it for you (as above).
NO
Enum are basically integral values . If you didn't provide the values for each one , they start counting from zero . Remember Enums can't be string values but can be converted to string as you just did .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|