Stringlist objects can be used to create lists of strings.
StringList Object has the following Properties:
CommaText |
String containing a comma delimited list of the properties of the named object. |
Count |
The Number of properties of the named object. |
DelimitedText |
String containing a list of the properties of the named object, delimited by the specified Delimiter. |
Delimiter |
String containing the delimiter to be used in the DelimitedText property. |
Item(Index: Number) |
String containing the property name of the property with number Index. For example: Dim Props as Object Props = ObjectProperties(CreateObject("Accredo.ARCustomerData"))
would print the name of the first property of the returned object. |
Text |
String containing a list of the properties of the named object, on separate lines. |
StringList Object has the following Methods:
Adds a String to the list and returns the Index Number of the added item. |
|
Adds a Key/Value pair to the end of the Stringlist Object. |
|
Adds another StringList to the end of the Stringlist Object. |
|
Adds a String to the end of the Stringlist Object. |
|
Empties the Stringlist Object. |
|
Removes an item from the Stringlist Object. |
|
Exchanges the position of two items in the list. |
|
Returns the value of a property or MaxBasic variable. |
|
Returns the index of the first item in the list with a value of Text. |
|
Returns the index of the first item in the list with Keyname. |
|
Insert a String at a specified position in the Stringlist Object. |
|
Clears the StringList and populates the Stringlist from a delimited file. |
|
Move an item in the list to a new position. |
|
Returns the Keyname for the index Number. |
|
Return the type of the property. |
|
Saves the StringList to a delimited file. |
|
Set the value of a property or MaxBasic variable. |
|
Sort items in a StringList alphabetically. |
|
Returns the value for the Index Number as Text. |