Yonatan
Nov 21st, 1999, 12:00 AM
Enum:
A list of constants... How can I explain this... Look at the example:
Enum MyEnum
MyZero ' First value is zero if unspecified
MyOne ' If value is unspecified, it equals (the value from before) + 1
MyTwo
MyThree
MyEight = 8 ' Specified
MyNine
End Enum
Dim Something As MyEnum
Something = MyZero ' Something = 0
Something = MyTwo ' Something = 2
Something = MyNine ' Something = 9
This probably wasn't the best explanation... Check online help...
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69
[This message has been edited by Yonatan (edited 11-21-1999).]
A list of constants... How can I explain this... Look at the example:
Enum MyEnum
MyZero ' First value is zero if unspecified
MyOne ' If value is unspecified, it equals (the value from before) + 1
MyTwo
MyThree
MyEight = 8 ' Specified
MyNine
End Enum
Dim Something As MyEnum
Something = MyZero ' Something = 0
Something = MyTwo ' Something = 2
Something = MyNine ' Something = 9
This probably wasn't the best explanation... Check online help...
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69
[This message has been edited by Yonatan (edited 11-21-1999).]