MBSCAN
NLS Function: Performs the same function
as SCAN except that the strings manipulated
can contain multibyte characters.
Module: USE DFNLS
Syntax
- result = MBSCAN (string,
set [, back ])
- string
(Input) Character*(*). String to be searched for the presence of
any character in set.
- set
(Input) Character*(*). Characters to search for.
- back
(Optional; input) LOGICAL(4). If specified, determines direction
of the search. If back is .FALSE. or is omitted, the search
starts at the beginning of string and moves toward the end. If back
is .TRUE., the search starts end of string and moves toward
the beginning.
Results:
The result is of type INTEGER(4).
If back is .FALSE. or
is omitted, returns the position of the leftmost character in string
that is in set. If back is .TRUE., returns the rightmost
character in string that is in set. If no characters in string
are in set, returns 0.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN
GRAPHICS WINDOWS DLL LIB
See Also: SCAN, MBINDEX,
MBVERIFY