ListGetNextString

InstallShield 2016 » InstallScript Language Reference

The ListGetNextString function retrieves the element after the current element in a string list. The retrieved element becomes the current element in the list.

Note • The ListGetNextString function works only with string lists.

Syntax

ListGetNextString ( listID, svString );

Parameters

ListGetNextString Parameters

Parameter

Description

listID

Specifies the string list from which to retrieve the next element.

svString

Returns the string that follows the current element of the string list. This string becomes the current element in the list.

Return Values

ListGetNextString Return Values

Return Value

Description

0

Indicates that the function successfully retrieved the element after the current element in a string list.

-1

Indicates that an error prevented the function from retrieving the specified element in a string list.

END_OF_LIST (1)

Indicates that the current item is the last element in the list.

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