method AddPair(Name: String, Value: String)
Available for StringList Objects. Adds a Key/Value pair to the end of the list.
AddPair method syntax has these named arguments:
Parameter |
Description |
|---|---|
Name |
Required. The key to add to the list. |
Value |
Required. The value to add to the list. |
For example:
Dim StringList as Object
StringList = CreateObject("Accredo.StringList")
StringList.AddPair("A", "Alpha")
StringList.AddPair("B", "Beta")
StringList.AddPair("G", "Gamma")
StringList.AddPair("Z", "Zeta")
Use IndexOfName to obtain the Index of a value in the list by name.