MBLen_Trim

NLS Function: Returns the number of characters in a multibyte-character string, not including trailing blanks.

Module: USE DFNLS

Syntax

result = MBLen_Trim (string)

string
(Input) Character*(*). String whose characters are to be counted. Can contain multibyte characters.

Results:

The result is of type INTEGER(4). The result is the number of characters in string minus any trailing blanks (blanks are bytes containing character 32 (hex 20) in the ASCII collating sequence).

MBLen_Trim recognizes multibyte-character sequences according to the multibyte codepage currently in use. It does not test for multibyte-character validity.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: MBLen, MBStrLead