StrLen

From Auto Hotkey

StrLen

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

OutputVar := StrLen(String)

Parameters

OutputVar

The name of the variable in which to store the length.

String

The string whose contents will be measured.

Related

InStr, SubStr, Trim, StrLower, StrUpper, StrPut, StrGet, StrReplace, StrSplit

Example

InputVar := "The Quick Brown Fox Jumps Over the Lazy Dog"
MsgBox "The length of InputVar is " StrLen(InputVar) ; Result: 43