OK. I have managed to call a procedure, by making the procedure
"published" and by calling:
RegisterMethod(TPerson, 'function DefaultFirstName(): String;',
@TPerson.DefaultFirstName);
But doing the same for a function:
RegisterMethod(TPerson, 'procedure SetDefaultFirstName();',
@TPerson.SetDefaultFirstName);
I am trying to make an instance of this class available in the script
TPerson = class(TPersistent)
protected
FFirstName: String;
FLastName: String;
FAge: integer;
public
constructor Create(); reintroduce; virtual;
function ToString(): String;
published
function DefaultFirstName(): String;
procedure SetDefaultFirstName();
property FirstName: String read FFirstName write FFirstName;
property LastName: String read _lastName write FLastName;
property Age: Integer read FAge write FAge;
end;
If you can help we should probably move this off-list so reply to
[EMAIL PROTECTED]
Thanks
Stacey
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stacey
Verner
Sent: Friday, 29 February 2008 13:16
To: [EMAIL PROTECTED]; NZ Borland Developers Group - Offtopic List
Subject: RE: [DUG-Offtopic] Scripting in the .Net Compact Framework
I am doing some simple testing, and I am having trouble trying to figure
out how set it up to call a method of an object.
I have managed to register the object and can access properties in the
script but not any methods.
Any tips?
Stacey
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeremy
Coulter
Sent: Friday, 29 February 2008 13:04
To: NZ Borland Developers Group - Offtopic List
Subject: RE: [DUG-Offtopic] Scripting in the .Net Compact Framework
not in .NET, but in win32 yes, lots.
I have built a whole dynamic solution around it, using just a core app.
and the scripts are loaded when needed. Actally, the scripts are
downloaded and then run as needed.
I have used it for other projects too, and very happy with it.
Jeremy
-----Original Message-----
From: Stacey Verner <[EMAIL PROTECTED]>
To: NZ Borland Developers Group - Offtopic List
<[email protected]>
Date: Fri, 29 Feb 2008 11:52:34 +1300
Subject: RE: [DUG-Offtopic] Scripting in the .Net Compact
Framework
I have found a tool called PaxScript which is available for
Delphi Win32, .Net and the .Net Compact Framework, and with a bit if
testing seems to do what we want.
Has anyone has any experience with this?
Buggy?
Thanks
Stacey
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stacey
Verner
Sent: Thursday, 28 February 2008 08:29
To: NZ Borland Developers Group - Offtopic List
Subject: [DUG-Offtopic] Scripting in the .Net Compact Framework
I need to put some Scripting capability into our software, and doing
this for Delphi Win32 and and C# for the .Net Framework is fine, but I
have not found a single solution for the .Net Compact Framework.
Do you know of anything?
Thanks
Stacey
Stacey Verner Ph: +64-9-4154790
Software Developer Fax: +64-9-4154791
DDI: +64-9-4154797
Email: [EMAIL PROTECTED]
<BLOCKED::mailto:[EMAIL PROTECTED]>
CJN Technologies Ltd.
PO Box 302-278, North Harbour, Auckland 0632, New Zealand
12 Piermark Drive, North Harbour, Auckland, New Zealand
Visit our website at http://www.cjntech.co.nz/
<BLOCKED::http://www.cjntech.co.nz/>
_______________________________________________
NZ Borland Developers Group Offtopic mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/offtopic
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe