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.
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.