
A constant expression is the simplest of all expression types. It allows you to create an expression and set a constant value that is returned after processing. A constant expression can be used for various purposes:
Define result values for other expressions
Define test parameters for comparison operations.
Define a value list for elementary data objects
There are six types of Constant expressions:
|
Constant Expression Type |
Text (Description) |
|---|---|
|
Text |
Character A text constant can hold a string with a maximum length of 255 characters. |
|
Number |
Number with decimals A number constant can have a maximum length of 46. The length represents the number of digits without exponent or sign. |
|
Boolean |
Boolean value |
|
Amount |
Number and currency |
|
Quantity |
Number and unit of measure |
|
Timepoint |
You can set abstract Date, abstract Time, abstract Data Time, Global Date Time, Local DateTime Offset |
The type of a constant expression can only be defined upon creation. Once the expression has been saved, the constant type cannot be changed anymore.