Progress
Language Tutorial
for Character


Using Constants

A constant is a value that does not change. A constant can be of any data type: Numeric (DECIMAL or INTEGER), CHARACTER, DATE, or LOGICAL.

Table 5–2 shows how to represent constants.

Table 5–2: Constant Data Types 
Data Type
Constant Example
CHARACTER
My-variable = "Second Skin Scuba":
Numeric
My-variable = 5000:
DATE
Myvariable = 12/31/93:
LOGICAL
Myvariable = TRUE:
Myvariable = T:
Myvariable = YES
Myvariable = Y

As you can see for LOGICAL values, TRUE, T, YES, and Y all represent the TRUE state. Similarly, FALSE, F, NO, and N all represent the FALSE state.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095