Skip to main content
Version: 4.2.5

Simple String List Object

Overview

Holds a list of string values.

Sections

Init, Main, Procedures, OnExit, and Structure.

Properties

NameDescription
AllReturns all the strings in the list as one string.
CountReturns the number of strings.
DelimiterDelimiter used in property All.
Item[]Gets item at index.
ObjectIsEmptyReturns 1 if object is not created.
LastReturnCode Returns last known return code from object.
note

Properties ObjectIsEmpty and LastReturnCode are common methods. For more information see Common properties and methods.

Methods

NameDescription
InsertInserts a string at index.
AddAdds an string to the end of list.
DeleteDeletes the item at index.
IndexOfReturns the index of first item that equals search value.
ClearClears all items in list.
SortSorts items in list on name.
LoadFromStringAdds items to list from a separated string.
CreateObjectCreates a new instance of the object.
FreeObjectReleases the instance of the object.
note

Methods CreateObject and FreeObject are common methods. For more information see Common properties and methods.

See Also

String List Object

Properties


All

Fetches all the strings in a list as one string. The Delimiter property is used as separator between strings.The default delimiter string is ;.

Type: String
Default: ''
Read: get_All
Write: -

See Also

Simple String List Object::Delimiter


Count

Returns the number of items in list.

Type: Integer
Default: -
Read: get_Count
Write: -

See Also

Item


Delimiter

The delimiter (separator) used in property All. The delimiter may consist of more than one character.

Type: String
Default: ;
Read: get_Delimiter
Write: put_Delimiter

See Also

All


Item[]

Fetches and sets an item at a specified index.

Valid values for index are 1..n.

Type: String
Default: -
Read: get_Item
Write: put_Item

See Also

Count

Methods


Add

Adds a string to the end of the list.

Parameters

ItemType: String
Description: Value to add.

See Also

Simple String List Object::Insert
Simple String List Object::LoadFromString


Insert

Inserts a string at index.

Valid values for index are 1..n.

Parameters

IndexType: Integer
Description: Index where to insert the item. Index is 1..n.
ValueType: String
Description: Value to insert.

See Also

Simple String List Object::Add
Simple String List Object::LoadFromString


Delete

Deletes an item at index.

Parameters

IndexType: Integer
Description: Index where to delete an item. Index is 1..n.

IndexOf

Fetches the index of the first item that equals the specified search value.

Parameters

Start atType: Integer
Default: 1
Description: Index where to start the search. Index is 1..n.
SearchValueType: String
Description: String value to search for.
Return valueType: Integer
Description: Index of searched string value. Returns -1 if no value is found.

Clear

Clears all items in list.

Parameters

-


Sort

Sorts items in list on name in descending order.

Parameters

-


LoadFromString

Adds items to list from a separated string. Values are appended to the list. The separator may consist of more than one character.

Parameters

ValuesType: String
Description: String of separated values.
ItemSeparatorType: String
Default: ;
Description: Character separating string values.

See Also

Simple String List Object::Add
Simple String List Object::Insert