lang • isspace

IsSpace

Result = IsSpace ( Expr AS String ) AS Boolean

Returns TRUE if the String Expr contains only spaces.

A space is one of the following characters:

  • A space " ",

  • A form-feed Chr$(12),

  • A newline "\n",

  • A carriage return "\r",

  • A horizontal tab "\t",

  • A vertical tab Chr$(11).

Examples

Print IsSpace(" \n \r\n")
True
Print IsSpace("Gambas\n")
False

See also