Home / lang / isascii 
IsAscii
Syntax
bResult = IsAscii ( sArgument AS String ) AS Boolean
bResult = Ascii? ( sArgument AS String ) AS Boolean

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

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

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

True True True

Example
PRINT IsAscii("BenoƮt")

False


See also
Character Test Functions