ListConvertStrToNum

InstallShield 2026 » InstallScript Language Reference

Project: This information applies to InstallScript projects.

The ListConvertStrToNum function converts each string element in listString to its numeric equivalent and appends it to listNumber.

Syntax

ListConvertStrToNum (listNumber, listString );

Parameters

ListConvertStrToNum Parameters

Parameter

Description

listNumber

Specifies the number list to which to append the converted strings. The list identified by listNumber must already have been initialized by a call to ListCreate.

listString

Specifies a string list. The list identified by listString must already have been initialized by a call to ListCreate.

Return Values

ListConvertStrToNum Return Values

Return Value

Description

>= ISERR_SUCCESS

Indicates that the function successfully converted the string list to a number list.

< ISERR_SUCCESS

Indicates that the function was unable to convert the string list to a number list.

Comments

The function uses StrToNum to convert the strings to numbers; if the conversion fails for an element in listString, 0 is appended to listNumber for that element.

See Also