Constant Definition Tips

When defining a constant value, the value of a constant can be a simple literal value or an expression constructed using literals and other constants. For details about literal types, see "Literals", in Chapter 1 of the JADE Developer's Reference.

You can define the value for a constant whose primitive type is not a specific literal format by using a typecast of a String literal or in the case of a Byte, a small Integer literal, as shown in the examples in the following table.

Primitive Type Value Expression
Date "31/12/2007".Date
Time "14:34:23.123".Time
TimeStamp "31/12/2007, 14:34:23:123".TimeStamp
Point "1,7".Point
Byte 0.Byte

For details about typecasting, see "Type Casts", in Chapter 1 of the JADE Developer’s Reference.