Skip to content

Issue with dynamic-property #47

@DanielBaciu

Description

@DanielBaciu

The code using dynamic-property to access - for read or write - object properties is not parsed.

Here are some code I have tested with corresponding error message:

put unformatted dynamic-property(oObject, "pProperty").
DymanicPropertyExample1.p:9:41: expecting RIGHTPAREN, found ','

put unformatted cPrefix + ';' + quoter(string(igStock - dynamic-property(oObject, "test" + cPropertyNum))).
DymanicPropertyExample2.p:10:46: expecting RIGHTPAREN, found '('

put unformatted cPrefix + ';' + quoter(string(igStockTruck[1] - dynamic-property(oObject, "test" + cPropertyNum))).
DymanicPropertyExample3.p:10:46: expecting RIGHTPAREN, found '('

put unformatted dynamic-property("MyClass", "test" + cPropertyNum))).
DymanicPropertyExample3.p:10:46: expecting RIGHTPAREN, found '('

dynamic-property(oObject, cProperty) = "test value".
DymanicPropertyExample5.p:6:17: unexpected token: (

Thank you for checking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions