TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
►
Procedures: Strings
Len
Procedure
Returns the number of bytes (UTF-8 code units) in a
String
.
Declaration
function Len(this as String) as Number
Parameters
this
as
String
— Any
String
value.
Return value
Number
— The number of code units in
this
.
Example
Code
dim x =
"hello"
print Len(x)
Output
5