IS.WIDESTR()

IS.WIDESTR()

Top  Previous  Next

 

The IS.WIDESTR() function determines whether a string contains any wide characters.

 

 

Format

 

IS.WIDESTR(string)

 

where

 

stringis the string to be tested.

 

 

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)

 
The above program fragment gets data from the user terminal and, if it contains wide characters, truncates it to fit in a specific width.

 

 

See also:

IS.WIDE()