ListCount

InstallShield 2014 ยป InstallScript Language Reference

The ListCount function returns the number of elements in a list.

Note: This function works with both strings and number lists.

Syntax

ListCount ( listID );

Parameters

ListCount Parameters

Parameter

Description

listID

Specifies the name of a string or number list.

Return Values

ListCount Return Values

Return Value

Description

>= 0

The number of items 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.

< 0

ListCount was unable to determine the number of elements in the list.

See Also