# Function Reference

StringLen

Returns the number of characters in a string.

StringLen ( "string" )

Parameters

string | The string to evaluate.

Return Value

Returns the length of the string.

Remarks

A numeric expression is automatically evaluated and converted to a string.

Related

String, StringInStr, StringLeft, StringLower, StringMid, StringRight, StringTrimLeft, StringTrimRight, StringUpper

Example

$len = StringLen("How long am I?")
MsgBox(0, "String length is:", $len)