MC-Basic:LEN
This function returns the length of the input string as the number of characters in an ASCII-8 string, or the number of symbols in a UTF-8 string .
In UTF-8 supporting versions 4.5.1 and higher NULL characters are no longer cut
out from strings, resulting in a different behavior:
-->?Len("A" + Chr$(0) + "B")
3.000000000000000e+00
Len of Chr$(0) is 1:
-->?Len(Chr$(0))
1.000000000000000e+00
In former versions NULL characters could not appear in the middle of strings, since
theconcationation process cut these characters from the resulting string.
Syntax
Len (<string>)
Availability
All versions
Type
<string>: String
<return value>: Long
Range
<return value>: 0 to MaxLong
Scope
Configuration, Task or Terminal
Limitations
Read only
Examples
? Len (“Hello”)
5.000000000000000e+01