MBNext

NLS Function: Returns the position of the first lead byte or single-byte character immediately following the given position in a multibyte-character string.

Module: USE DFNLS

Syntax

result = MBNext (string, position)

string
(Input) Character*(*). String to be seached for the first lead byte or single-byte character after the current position. Can contain multibyte characters.


position
(Input) INTEGER(4). Position in string to search from. Must be the position of a lead byte or a single-byte character. Cannot be the position of a trail (second) byte of a multibyte character.

Results:

The result is of type INTEGER(4). The result is the position of the first lead byte or single-byte character in string immediately following the position given in position, or 0 if no following first byte is found in string.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: MBPrev