Gambas Documentation - /lang/isascii

/lang/isascii

# IsAscii

Result = IsAscii ( Argument AS String ) AS Boolean Result = Ascii? ( Argument AS String ) AS Boolean

Returns TRUE if the Argument (after converted to a String) contains only ASCII characters.

An ASCII character is a character whose code is lower or equal than 127.

### Examples

    PRINT IsAscii("Gambas"), IsAscii(Now), IsAscii(188)

    True    True    True

    PRINT IsAscii("Benoît")

    False

### See also

- Character Test Functions