Previous Topic

Next Topic

Stringlist Object

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"))

Print(Props.Item(1))

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:

Add

Adds a String to the list and returns the Index Number of the added item.

AddPair

Adds a Key/Value pair to the end of the Stringlist Object.

AddStrings

Adds another StringList to the end of the Stringlist Object.

Append

Adds a String to the end of the Stringlist Object.

Clear

Empties the Stringlist Object.

Delete

Removes an item from the Stringlist Object.

Exchange

Exchanges the position of two items in the list.

GetPropertyValue

Returns the value of a property or MaxBasic variable.

IndexOf

Returns the index of the first item in the list with a value of Text.

IndexOfName

Returns the index of the first item in the list with Keyname.

Insert

Insert a String at a specified position in the Stringlist Object.

LoadFromFile

Clears the StringList and populates the Stringlist from a delimited file.

Move

Move an item in the list to a new position.

Name

Returns the Keyname for the index Number.

PropertyType

Return the type of the property.

SaveToFile

Saves the StringList to a delimited file.

SetPropertyValue

Set the value of a property or MaxBasic variable.

Sort

Sort items in a StringList alphabetically.

Value

Returns the value for the Index Number as Text.

In This Section

Add

AddPair

AddStrings

Append

Clear - Method

Delete

Exchange

GetPropertyValue - Method

IndexOf

IndexOfName

Insert

LoadFromFile

Move

PropertyType - Method

Name - Method

SaveToFile

SetPropertyValue - Method

Sort

Value - Method

See Also

MaxBasic Objects

Book Contents

Book Index