Pre-Calculated Constants

Integer constants

NameInformation
%EXIT_FAILURE Use with Exit Program.
%EXIT_SUCCESS Use with Exit Program.
%FALSE Boolean.False As Int
%TRUE Boolean.True As Int

Characters

Code pointNameInformation
0 (&H0000) %NUL, %NULL Null
7 (&H0007) %BEL, %BELL Audible bell
8 (&H0008)%BS, %BACKSPC Backspace
9 (&H0009) %T, %TAB Horizontal tab
10 (&H000A) %LF, %LINEFEED Line feed
11 (&H000B) %VT, %VTAB Vertical tab
12 (&H000C) %FF, %FORMFEED Form feed
13 (&H000D) %CR, %RETURN Carriage return
27 (&H001B) %E, %ESCAPE Escape
32 (&H0020) %SPC, %SPACE Space

String constants

For the syntax of string constants, see String Basics.

Named string constants

NameInformationEquivalents
$CR, $RETURN Carriage return $13, $HD, $O15, $B1101
$E, $ESCAPE Escape $27, $H1B, $O33, $B11011
$FF, $FORMFEED Form feed $12, $HC, $O14, $B1100
$LF, $LINEFEED Line feed $10, $HA, $O12, $B1010
$N, $NEWLINE Newline (Platform-controlled)
$PD, $PARENTDIR Parent directory (Platform-controlled)
$PS, $PATHSEP File path separator ""/"", ""\""
$RD, $ROOTDIR Root directory (Platform-controlled)
$S, $SPACE Space $32, $H20, $O40, $B100000
$T, $TAB Horizontal tab $9, $H9, $O11, $B1001

Magic constants

NameInformation
$DATE The date during compilation in UTC
$DATE_DMY The date in DD-MM-YYYY format
$DATE_MDY The date in MM-DD-YYYY format
$DATE_YMD The date in YYYY-MM-DD format
$FILE The name of the source file
$LINE The line number in the source file
$CONT The name of the class, object, trait, or module
$PROC The name of the procedure (or the same as $CONT, if not in a procedure)
$TIME The time during compilation in UTC
$TIME_12 The time in 12-hour format ("1:37 PM")
$TIME_12_SEC The time in 12-hour format ("1:37:55 PM")
$TIME_24 The time in 24-hour format ("13:37")
$TIME_24_SEC The time in 24-hour format ("13:37:55")