jtrahan
asked on
Delphi Scripts
Is there a way to make a Delphi Scripting Engine Like you can with C and VB?
Look at www.scriptics.com for TCL. There should be some Delphi components available for TCL.
Regards,
Epsylon.
Regards,
Epsylon.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi people;
I'd like to ask Thaddy where I found the "MS Scripting engine", and some hints about use.
T++, Radler.
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(cl ass_Script ConTrol) 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.Line s.Text));
OleVariant(Script).Run('TE ST');
end;
Untested, out of my head, but similar code I wrote for an article is available.
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(cl
Script.Language:='VBScript
Memo1.Lines.Add('SUB TEST');
Memo1.Lines.Add('MsgBox "Hello, World!"';
Memo1.Lines.Add('END SUB');
Script.AddCode(WideString(
OleVariant(Script).Run('TE
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
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
YACC
PARSER
Yours,
Alex