![]() | Type | Description | ||
| String | A String expression that indicates the formula to compute the field/cell. The formula is applied to all cells in the column with the CaptionFormat property on exText ( the exText value is by default ). |
Use the CaptionFormat property to change the type for a particular cell. Use the Caption property to specify the cell's content. For instance, if the CaptionFormat property is exComputedField, the Caption property indicates the formula to compute the cell's content.
The Def(exCaptionFormat) property is changed to exComputedField, each time the ComputeField property is changed to a not empty value. If the ComputedField property is set to an empty string, the Def(exCaptionFormat) property is set to exText. Call the Refresh method to force refreshing the control.
The property may include variables, constants, operators or ( ) parenthesis. A variable is defined as %n, where n is the index of the column ( zero based ). For instance, the %0 indicates the first column, the %1, indicates the second column, and so on. A constant is a float expression ( for instance, 23.45 ).
The property supports the following binary arithmetic operators:
The property supports the following unary boolean operators:
The property supports the following binary boolean operators:
The property supports the following binary boolean operators, all these with the same priority 0 :
Obviously, the priority of the operations inside the expression is determined by ( ) parenthesis and the priority for each operator. The property may be a combination of variables, constants and operators.
Samples: