ListCurrentString

InstallShield 2014 ยป InstallScript Language Reference

The ListCurrentString function retrieves the current element from the string list specified in listID.

You can also use the ListGetFirstString and ListGetNextString functions to traverse the list and make any element the current element.

Note: ListCurrentString works only with string lists.

Syntax

ListCurrentString ( listID, svString );

Parameters

ListCurrentString Parameters

Parameter

Description

listID

Specifies a string list.

svString

Returns the value of the current element in the list.

Return Values

ListCurrentString Return Values

Return Value

Description

0

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

< 0

Indicates that the function was unable to retrieve the current element in a string list.

END_OF_LIST (1)

Indicates that the list is empty and therefore does not have a current element.

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