StExpr := TStExpression.Create;
is left uncommented. If it is commented then either of the last two
showmessage lines will generate errors. I feel like I must be missing
something simple and fundamental. Are there any simple code examples
out there?
Thanks in advance for you comments
procedure TForm1.Button1Click(Sender: TObject);
var
StExpr: TStExpression;
begin
StExpr := TStExpression.Create;
//stexpr.CleanupInstance;
//StExpr.ClearIdentifiers;
StExpr.Expression := '2 + 100';
showmessage(floattostr(StExpr.AnalyzeExpression));
showmessage(StExpr.asstring);
end;
Uh.. yes. Well after letting a couple days pass and looking at it
again I realize that I need
StExpr := TStExpression.Create(self);
{rolling eyes at self}