Skip to content

Let the TDelphiWebScript support assign a unit source in USES directly when compile a Main script which referrence another Common Unit. #36

Description

@wqmeng

I have a problem, that my Main script is stored in database, and when use it, it was compiled by TDelphiWebScript.
private
FCompiler: TDelphiWebScript;
LProgram := FCompiler.Compile(LExpr);

In LExpr
uses
My.Common;

When added the Common Unit My.Common by USES in LExpr, it can not compile the LExpr, it can not use the Common Unit file.

So I think there should be another approach which could add the Common Unit My.Common to the TDelphiWebScript and use that Common Unit before it compile the LExpr.

Thank you.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions