ListCurrentItem

InstallShield 2014 ยป InstallScript Language Reference

The ListCurrentItem function retrieves the current element from the number list specified in listID.

You can also use the ListGetFirstItem and ListGetNextItem functions to traverse the list and make any element the current element.

Note: ListCurrentItem works only with numbered lists.

Syntax

ListCurrentItem ( listID, nvItem );

Parameters

ListCurrentItem Parameters

Parameter

Description

listID

Specifies a number list.

nvItem

Returns the value of the current element in the list.

Return Values

ListCurrentItem Return Values

Return Value

Description

0

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

< 0

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

END_OF_LIST (1)

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

ISERR_LIST_NOSUCHLIST

Indicates that a list with the specified ID does not exist. Valid list IDs are return values from the ListCreate function.

See Also