# MBCharLen (W*S)

NLS Function: Returns the length, in bytes, of the first character in a multibyte-character string.

## Module

USE IFNLS

result = MBCharLen (string)

string | (Input) Character*(*). String containing the character whose length is to be determined. Can contain multibyte characters.

## Results

The result type is INTEGER(4). The result is the number of bytes in the first character contained in string. The function returns 0 if string has no characters (is length 0).

MBCharLen does not test for multibyte character validity.

Parent topic: National Language Support (NLS) Library Routines

## See Also

MBCurMax
MBLead
MBLen
MBLen_Trim