Thursday, August 30, 2007

Declare and enumeration in vb

// Declare the Enumeration
public enum MessageSize {

Small = 0,
Medium = 1,
Large = 2
}

// Create a Field or Property
public var msgsize:MessageSize;

// Assign to the property using the Enumeration values
msgsize = Small;

No comments: