![]()
|
InstallShield 2008 ยป InstallScript Language Reference
The ListAddString function adds a string to a string list before or after the current element.
Note
ListAddString works only with string lists.
Task
To traverse a list:
To make a specific element in the list the current element, call ListSetIndex.
ListAddString ( listID, szString, nPlacementFlag );
| Parameter |
Description |
|---|---|
| listID |
Specifies the name of a string list. The list identified by listID must already have been initialized by a call to ListCreate. |
| szString |
Specifies the string to add to the list. |
| nPlacementFlag |
Specifies where to put szString relative to the current element. The new string will go either before or after the current element. Pass one of the following predefined constants in this parameter: |
| Return Value |
Description |
|---|---|
| > = ISERR_SUCCESS (0) |
The function was successful. |
| < ISERR_SUCCESS (0) |
The function was not successful. |
| ISERR_LIST_NOSUCHLIST (-501) |
Indicates that a list with the specified ID does not exist. Valid list IDs are return values from the ListCreate function. |
See Also
|
|
Copyright Information | Contact Macrovision |