Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

StExpr difficulties

4 views
Skip to first unread message

Xomiach

unread,
Sep 15, 2003, 2:33:51 PM9/15/03
to
I'm attempting to use the StExpr unit from the Turbopower Systools VCL
component pack. In the test example I added StExpr to the uses
section. The below code will generate a compile error (not enough
parameters) if the line

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;

Xomiach

unread,
Sep 19, 2003, 6:25:05 PM9/19/03
to
xom...@yahoo.com (Xomiach) wrote in message news:<1eaf97a6.03091...@posting.google.com>...

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}

0 new messages