Name
IsSpace -- check if character is a white-space character (V7.0)
Synopsis
bool = IsSpace(s$[, pos, encoding])
Function
Checks if the character at index pos inside string s$ is a white-space character and returns True if it is, otherwise False. White-space characters are characters such as space, tab, newline, carriage return, etc. The optional pos parameter must be in characters, not in bytes. It defaults to 0 which will test the first character in s$.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

Inputs
s$
source string
pos
optional: index of character to test (defaults to 0)
encoding
optional: character encoding to use (defaults to default string encoding)
Results
bool
True or False, depending on the test's result

Show TOC