# StringLen

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

    StringLen, OutputVar, InputVar
    Length := StrLen(String)

### Parameters

OutputVar | The name of the variable in which to store the length.
InputVar | The name of the 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

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

### Related

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

### Example

    StringLen, length, InputVar
    MsgBox, The length of InputVar is %length%.

    MsgBox % "The length of MyVar is " . StrLen(MyVar)