Constants

Integer

Integer constants must be digits only, entirely preceded by an optional minus sign.

Double

Double constants must be digits only, with an optional decimal point, entirely preceded by an optional minus sign.

String Literals

String constants are entered in double quotes, e.g. "hello there".

To include a double quote in a string, repeat the double quote. For example

John said "Hi" to me.

is entered

"John said ""Hi"" to me."

To include the white space characters 'tab' and 'new line', use '\t' and '\n', respectively. To include a backslash '\', use '\\'. For example

Go to the following location on your computer

C:\Program Files\

is entered

"Go to the following location on your computer\nC:\\Program Files\\"

© 1991-2024 - Baseline Data Systems, Inc.