Skip to content

TObjectExpression support for complex expressions #4

@davidberneda

Description

@davidberneda
Member

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @davidberneda

      Issue actions

        TObjectExpression support for complex expressions · Issue #4 · Steema/TeeBI