IS.WIDESTR() |
|
|
The IS.WIDESTR() function determines whether a string contains any wide characters.
Format
IS.WIDESTR(string)
where
On ECS mode systems,the character maps assign type attributes to each character. The "wide" (or double width) attribute identifies that the associated character occupies two positions on a terminal display or printer. The IS.WIDESTR() function returns True if the supplied string contains one or more wide characters, False if there are none.
On a non-ECS mode system, the attributes applicable to the members of the 8-bit character set are fixed and there is no concept of a wide character. This function always returns False on such systems.
Example
INPUT TITLE IF IS.WIDESTR(TITLE) THEN TITLE = SUBSTRDW(TITLE, 1, WIDTH)
See also: |