The following expression gets a PARSE ERROR because of an improper use of a single quote as data:
C5 == 'dad's room';
This is the correct method for coding the expression with the escape character:
C5 == 'dad\'s room';
An additional example:
'Single quote=\'';
which yields the result:
Single quote='
You can use the escape character to include other special characters in character literals that cannot otherwise be specified. For example:
-
‘\0’ within a literal represents one binary zero character.
-
‘\0\0\0\0’ within a literal represents 4 binary zeros.
-
‘\t’ within a literal represents a tab character.‘TAB\t IT!’