StringLen()
- Last UpdatedJul 13, 2023
- 1 minute read
Returns the number of characters in a string.
Category
String
Syntax
IntegerResult = StringLen( Text );
Parameter
Text
Actual string or a string equipment.item.
Remarks
All the characters in the string equipment.item are counted, including blank spaces and those not normally shown on the screen.
Examples
StringLen("Twelve percent") ' returns 14;
StringLen("12%") ' returns 3;
StringLen("The end." + StringChar(13)) ' returns 9;
The carriage return character is ASCII 13.
See Also
StringASCII(), StringChar(), StringFromIntg(), StringFromReal(), StringFromTime(), StringInString(), StringLeft(), StringLower(), StringMid(), StringReplace(), StringRight(), StringTest(), StringToIntg(), StringToReal(), StringTrim(), StringUpper(), Text()