MBCharLen

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

Module: USE DFNLS

Syntax

result = MBCharLen (string)

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

Results:

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

MBCharLen does not test for multibyte character validity.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: MBCurMax, MBLead, MBLen, MBLen_Trim