Re: Custom Property Type?
This is called enumeration.
Code:
Private Enum CustomStatus
Stopped = 0
Running = 1
Waiting = 2
Paused =3
End Enum
More information here:
http://www.vbdotnetheaven.com/Upload...EnumVBNET.aspx
Re: Custom Property Type?
Enumeration is what you're looking for. The Keyword in VB is "Enum"
Code:
Public Enum myType As Integer
ItemOne = 1
ItemTwo
ItemThree
If you don't specify a value, the next number in the sequence will be used. If you don't specify a starting value, 0 gets used...
Code:
Public Enum myType As Integer
ItemOne
ItemTwo
ItemThree
Also the numbers don't need to be in order, but then you have to specify each value
Code:
Public Enum myType As Integer
ItemOne = 10
ItemTwo = 5
ItemThree = 200
-tg
Re: Custom Property Type?
You are thinking of an Enum:
Code:
Public Enum CustomStatus
Stopped
Running
Waiting
Paused
End Enum
Re: Custom Property Type?
Wow, two posts got in ahead of me.