ListAddString

Top  Previous  Next

Prototype

 

intElements:=ListAddIStrings(IntHandle, strString, strSeparator)

 

Description

 

Adds more element to the list. The element are passed through a string separated by separator element.

 

Parameters

 

IntHandle: integer value corresponding to the list handle

 

strString: string value corresponding to the elements to add separated by strSeparator

 

strSeparator: string value corresponding to the separator character

 

Returned value

 

intElements: integer value corresponding to the number of added element

 

Notes

 

None.

 

Example

 

//It creates a new list

HandleList:=ListCreate; 

 

//It adds element to the list

ListAddStrings(HandleList,'Element 1;Element 2;Element 3',';');

 

//It counts list element

TotalElements:=ListCount(HandleList);

ShowMessage(''The element counted are: '+IntToStr(TotalElements));

 

//It destroys the list

ListDestroy(HandleList);