Defining Global Constants

Global constants provide a more-meaningful representation than simply using literal values or numbers.

You can define constants of any primitive type; for example, String, Integer, or Character. A number sign (#) precedes a hexadecimal (hex) value. Hexadecimal strings in JADE are represented as a sequence of space-separated hexadecimal characters; for example:

WhiteSpace = #"09 0A 0B 0C 0D 20";

Constants in expressions can be user-defined constants or they can be one of the predefined system constants. As the name implies, global constants cannot be updated or modified in any way within the body of a method.

JADE provides system global constants in the RootSchema that are available for all of your schemas. For details, see "Global Constants Reference", in Appendix A of the JADE Encyclopaedia of Primitive Types.

Only one Global Constants Browser for the current schema can be open at any time. If a Global Constants Browser is already open for that schema, it is brought to the top when you select the Global Constants command from the Browse menu.

You can have concurrent open Global Constants Browsers for different schemas in the current development environment session.