This function returns a dynamic array of the number of bytes in each element of the dynamic.array. It takes the general form:
The characters in each element of dynamic.array are counted, with the counts returned.
Blank spaces (leading or trailing) are included in the calculation.
If dynamic.array evaluates to a null string, it returns zero (0). If any element of dynamic.array is null, returns zero (0) for that element.
When used in International Mode, the function will return the number of characters in the specified expression rather than the number of bytes. If the expression consists entirely of UTF-8 characters in the ASCII range 0 – 127 then the character length of the expression will equate to the byte length. However, when the expression contains characters outside the ASCII range 0 – 127 then byte length and character length will differ. If the byte is specifically required then the BYTELEN function should be used instead.
It is not recommended to use programs to manipulate byte counts in International Mode.
Go back to jBASE BASIC.