StrLength

InstallShield 2020 ยป InstallScript Language Reference

The StrLength function returns the number of characters in a given string variable (that is, the number of code units in the UTF-16-encoded string) up to the first null character.

StrLength and StrLengthChars return the same results.

To obtain the number of characters in a string with embedded nulls, use SizeOf.

Syntax

StrLength ( szString );

Parameters

StrLength Parameters

Parameter

Description

szString

Specifies the string whose size is to be determined.

Return Values

StrLength Return Values

Return Value

Description

X

Where X is the number of characters in the string.

< 0

Indicates that the function was unable to determine the number of characters in the string.

See Also