This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

ScriptPack - version 2017 - Eval function

HI

The very simple example below from the chm file does not run as it complains form parsing error in the end of the "sin". This error appears in any eval or run script situation.

Why?

var

  v: OleVariant;

begin

  LMDScriptControl1.Language:=slpascal ;
  LMDScriptControl1.Active := True;

  v := LMDScriptControl1.Eval('(5 + 7) * 3 – Sin(0.1123)');

  ShowMessage(v);

Comments

  • Sorry..for some very strange reason...pasting the expression from the chm file gives the parsing error, but writing it from scratch in the IDe of  delphi runs ok...:( have no idea.....

    So this error is closed...
Sign In or Register to comment.