Steema-BI-Samples
Steema-BI-Samples copied to clipboard
TObjectExpression support for complex expressions
TObjectExpression currently supports Object + field or property ( Edit1, 'Text' )
The enhancement is to support free expressions like:
'Button1.Width * 42 + (Panel1.Position.X / 3)'
A possible syntax: var E : TExpression; E:= TObjectExpression.From(Self, ' ......the expression...'); Caption:= E.Value;
The "Self" parameter is the "root" starting object, collection or component where to look for references in the expression (in this example, the Form owner of Button1 and Panel1)