Built-in string equates

The compiler also provides a set of built-in string equates. These offer convenience as well as self-documentation.

The following table shows the ANSI form, each of which begins with a single dollar-sign ($).  The compiler also includes and offers a wide Unicode version of each of them, identified by a double dollar-sign ($$).  For example, $NUL returns a byte with the character code zero (0), while $$NUL returns a word with the character code zero (0).

 

ANSI

Character(s)

Definition

$NUL

CHR$(0)

Null

$BEL

CHR$(7)

Bell

$BS

CHR$(8)

Back Space

$TAB

CHR$(9)

Horizontal Tab

$LF

CHR$(10)

Line Feed

$VT

CHR$(11)

Vertical Tab

$FF

CHR$(12)

Form Feed

$CR

CHR$(13)

Carriage Return

$CRLF

CHR$(13,10)

CR and LF

$EOF

CHR$(26)

End-of-File

$ESC

CHR$(27)

Escape

$SPC

CHR$(32)

Space

$DQ

CHR$(34)

Double-Quote

$DQ2

CHR$(34,34)

Two Double-Quotes ("")

$SQ

CHR$(39)

Single-Quote

$SQ2

CHR$(39,39)

Two Single-Quotes ('')

$QCQ

CHR$(34, 44, 34)

Double-Quote, Comma, Double-Quote

$WHITESPACE

CHR$(32, 9, 13, 10)

Space, Tab, CR, LF

 

See Also

Constants and Literals

Numeric Equates

Built-in numeric equates

Built-in RGB Color Equates

String Equates

Built-in Interfaces

Built-in User Defined Types