CopyCHARArrayToISStringArray

InstallShield 2020 ยป InstallScript Language Reference

Description

The CopyCHARArrayToISStringArray function copies the strings from an existing array of ANSI character strings (pointed to by pCHARArray) to the existing string array specified by vArray.

Syntax

CopyCHARArrayToISStringArray ( vArray, pCHARArray );

Parameters

CopyCHARArrayToISStringArray Parameters

Parameter

Description

vArray

Specifies the string array to which you want to copy strings.

pCHARArray

Specifies a pointer to an array of pointers to ANSI character strings. Typically, this pointer is returned by a previous call to GetCHARArrayFromISStringArray.

Return Values

CopyCHARArrayToISStringArray Return Values

Return Value

Description

ISERR_SUCCESS

This function always returns ISERR_SUCCESS.

Additional Information

If pCHARArray was returned by a previous call to GetCHARArrayFromISStringArray, be careful when modifying strings contained in the array. Since the length of the strings contained in string arrays are managed internally by the setup, if you change the length of a string the entire string will not be copied back to the original array when you call CopyCHARArrayToISStringArray.