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