InstallShield 2019 ยป InstallScript Language Reference
The STRTOCHAR function returns the first character of szString as data of type CHAR.
Syntax
STRTOCHAR ( szString );
Parameters
Parameter |
Description |
szString |
Specifies the string whose first character will be returned as data of type CHAR. |
Return Values
Return Value |
Description |
char |
The first character of szString expressed as data of type CHAR. |
Additional Information
The STRTOCHAR function is useful when passing string literals to functions. Since InstallScript interprets double and single quotes as string delimiters, attempting to pass a literal character, for example, 'a', to a function that expects a character will cause a compiler error. To avoid this problem, pass the character literal to STRTOCHAR and pass the result of calling this function as the argument; for example:
Sprintf( szString, "%c", STRTOCHAR('a') );
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |