Skip to content

[VFP] DO commands preprpocessor handling #2021

Description

@cpyrgas

Found plenty of those, for which we get syntax error XS9002: Parser: mismatched input '' expecting {WITH, EOS}:

PUBLIC mpathprog
mpath := "C:\test"
DO &mpath\something.fxp

Looks like it's macrocompiling the var mpath and ends up with

DO C:\test\something.fxp

Can we somehow support this syntax in the macrocompiler/UDC?

Implementing the actual command is another story, what I'm looking for is a way to preprocess the original command in any way possible, because I have failed to create a UDC for it to preprocess it to anything that does not give a parser error.

Similarly:

DO FORM &mpathforms\login.scx

and also found the same issue with USE, apparently this code pattern is very common in VFP:

USE &mpath\data\isastables.dbf SHARED ALIAS xtables

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions