ListValidType

InstallShield 2014 » InstallScript Language Reference

The ListValidType function indicates whether the list specified by listID is of the specified type and is valid, that is, whether it has been initialized by calling ListCreate and not destroyed by calling ListDestroy.

Syntax

ListValidType ( listID, nType );

Parameters

ListValidType Parameters

Parameter

Description

listID

Specifies the string or number list to be checked.

nType

Specifies the list type to which the specified list is compared. Pass one of the following predefined constants in this parameter:

NUMBERLIST—Specifies a number list.
STRINGLIST—Specifies a string list.

Return Values

ListValidType Return Values

Return Value

Description

>= ISERR_SUCCESS

Indicates that the list is valid and is of the specified type.

< ISERR_SUCCESS

Indicates that the list is not valid or is not of the specified type.

ISERR_LIST_NOSUCHLIST

Indicates that the list has not been initialized.

ISERR_LIST_TYPEMISMATCH

Indicates that the list is not of the specified type.

See Also