Gambas Documentation - /lang/len

/lang/len

# 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.

### Examples

    PRINT Len("Gambas"), Len("äöü")

    6       6

    PRINT Len("")

    0

### See also

- String Functions