Len
Length = Len ( Arg AS String ) AS Integer
Returns the byte count which is occupied by the string
Arg.
Each ASCII character which has the code 0 to 127 requires one byte, UTF-8 characters as
ä
,
ö
,
ü
,
ß
require two or more bytes.
This function only deal with ASCII strings. To manipulate UTF-8 strings, use the
String class.
Using string like objects (as known as "Boxed strings")
Поскольку 3.12
You can get the length of a string using the following object-like syntax:
Length = String.Len
Examples
PRINT Len("Gambas"), Len("äöü"), String.Len("äöü")
PRINT Len("")
Print "Gambas".Len
See also