StrLen()

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

Length := StrLen(String)

Parâmetros

String
The string whose contents will be measured.

Return Value

This function returns the length of the string.

Remarks

If String is a variable to which ClipboardAll was previously assigned, StrLen() will retrieve its total size.

StringLen, InStr(), SubStr(), Trim(), StringLower, StringUpper, StrPut(), StrGet(), StrReplace(), StrSplit()

Exemplos

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

StrValue := "The quick brown fox jumps over the lazy dog"
MsgBox % "The length of the string is " StrLen(StrValue) ; Result: 43