Difference between revisions of "MC-Basic:LEN"
m (1 revision) |
|||
Line 57: | Line 57: | ||
* [[Axystems:MC-Basic:SIZE|SIZE]] | * [[Axystems:MC-Basic:SIZE|SIZE]] | ||
− | + | [[Category:Axystems:MC-Basic:String_Manipulation]] | |
}} | }} |
Revision as of 14:19, 6 March 2014
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