VLPropertyList Reference

MethodAdd

See Also See Also Applies To Applies To

Adds a new CListItem to CListItems collection of a CProperty.

 

Syntax

object.Add(ByVal sText As String , ByVal aValue As Variant )

 

The Add method syntax has these parts:

PartDescription
object An object expression that evaluates to an object of CListItems type.
sText A CListItem caption text which appears in the drop down list box.
aValue A Variant expression storing the value corresponding to the specified text.

 

Remark

sText will also be used as the key to the new item in CListItems collection. It can be used a parameter to the Item and Remove methods of CListItems collection for retrieving or removing this CListItem object from the collection.