Link to home
Start Free TrialLog in
Avatar of jtrahan
jtrahan

asked on

Delphi Scripts

Is there a way to make a Delphi Scripting Engine Like you can with C and VB?
Avatar of simonet
simonet
Flag of Brazil image

Go to Torry's Delphi pages (www.torry.ry) or Delphi Super Page (metalab.unc.edu.pl/delphi) and look for these keywords:

YACC
PARSER

Yours,

Alex
Avatar of Epsylon
Epsylon

Look at www.scriptics.com for TCL. There should be some Delphi components available for TCL.

Regards,

Epsylon.
ASKER CERTIFIED SOLUTION
Avatar of Thaddy
Thaddy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi people;

I'd like to ask Thaddy where I found the "MS Scripting engine", and some hints about use.

T++, Radler.
www.msdn.microsoft.com/scripting
You can import the Microsoft scriptcontrol as an ActiveX control.
It's very easy to use (you need Internet explorer 4 or the scriptinghost installed as well)
Use another way:
-Import the OCX
Add the generated MSSCRIPT_TLB.PAS to your uses clause

var
Script:iScriptControl;

begin
Script:=CreateComObject(class_ScriptConTrol) as iScriptControl;
Script.Language:='VBScript';
Memo1.Lines.Add('SUB TEST');
Memo1.Lines.Add('MsgBox "Hello, World!"';
Memo1.Lines.Add('END SUB');
Script.AddCode(WideString(Memo1.Lines.Text));
OleVariant(Script).Run('TEST');
end;

Untested, out of my head, but similar code I wrote for an article is available.
GREETINGS!

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange