TTMSFNCDataGridFormatRuleItem.EffectiveExpression Method
The expression as evaluated. An expression that names no column with
[ ]is applied to this rule's own Column, so a bare condition such as=M*or>1000works the way a filter condition does.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridFormatRuleItem
Syntax
function EffectiveExpression(const AProvider: ITMSFNCDataGridFormatProvider): string;
System::UnicodeString __fastcall EffectiveExpression(const _di_ITMSFNCDataGridFormatProvider AProvider);
Remarks
Expression is returned unchanged when it is empty, contains [, or is nil. Otherwise a leading <>, >=, <=, =, > or < is taken as the operator (no operator means =), the rest as the value, and the condition is rendered through ITMSFNCDataGridFormatProvider.BuildExpressionText against the column's data name, falling back to the column index when the column has no name. Because a bare condition binds to Column, set Column explicitly on an expression rule, which defaults to column 0.
Parameters
| Name | Description |
|---|---|
AProvider |
Grid the rule belongs to, used to name the column. |
Returns
Expression the filter engine is given.