Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

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

Sign In or Register to comment.