Name
IsCntrl -- check if character is a control character (V7.0)
Synopsis
bool = IsCntrl(s$[, pos, encoding])
Function
Checks if the character at index pos inside string s$ is a control character and returns True if it is, otherwise False. A control character is a character that is not printable, e.g. backspace, tab, line feed, escape, 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