StringLen

Retrieves the count of how many characters are in a string.

Deprecated: This command is not recommended for use in new scripts. Use the StrLen function instead.

StringLen, OutputVar, InputVar

Parameters

OutputVar
The name of the output variable in which to store the length.
InputVar
The name of the input variable whose contents will be measured. Do not enclose the name in percent signs unless you want the contents of the variable to be used as the name.

Remarks

For this and all other commands, OutputVar is allowed to be the same variable as InputVar.

If InputVar is a variable to which ClipboardAll was previously assigned, StringLen will retrieve its total size.

StrLen(), IfInString, StringGetPos, StringMid, StringTrimLeft, StringTrimRight, StringLeft, StringRight, StringLower, StringUpper, StringReplace

Examples

Retrieves and reports the count of how many characters are in a string.

StrValue := "The quick brown fox jumps over the lazy dog"
StringLen, Length, StrValue
MsgBox, The length of the string is %Length%.