AddEnum

Adds a new enumeration value to the property.

Syntax

object.AddEnum(Value As Variant, Description As Variant)

The AddEnum method syntax has the following parts:

Part Description
object An expression evaluating to an object of type PropNode.
Value Variant - value of the enum.
Description Variant - description of the enum.

Example

Private Sub pl_FetchData(ByVal property As DDPropertyListCtl.IPropNode)
Select Case property.Name
Case "State"
property.ClearEnums
property.AddEnum "AL", "Alabama"
property.AddEnum "CA", "California"
property.AddEnum "OH", "Ohio"
property.AddEnum "NC", "North Carolina"
End Select
End Sub