DECLARE FUNCTION LEN AS BYTE (arg$ AS STRING) SHARED STATIC INLINE
If the argument is a variable, the function will return the actual length of the string, rather than the length to which the variable was defined.
===== Examples =====
PRINT LEN("") ' outputs 0
PRINT LEN("hello") ' outputs 5
DIM a$ AS STRING * 16
a$ = "world"
PRINT LEN(a$) ' outputs 5 (the actual length of the string)