Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



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.

Was this article helpful?