----- Original Message ----- From: "Lawrence Lustig" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 28, 2004 11:37 AM Subject: [RBG7-L] - Re: Announcing R:Scripter for R:BASE 7.x
> > No application object because you can't pass in an object reference, only > > text > > arguments. But you could use FindWindow to get a handle on a form and go > > from > > there in the script (untested, but I know the API is available for use). > > I'm looking for a richer model than the API. When you use the MS scripting > control, you can pre-define and instantiate objects that will be available to > the script. This is commonly done so the script has access to the calling > application. To pass references into the scripting control, however, you need > a COM wrapper to whatever you're passing. > > It would be nice if the Pascal engine allowed to you reference and pass in the > Application object so that it would available in the script as Application > (just like in Delphi). In that case, you should have access to any Published > properties and methods in the application. > > I don't know if that's possible -- but it sure would be nice! I am sure it is possible, but I don't think the Plugin itself contains the Application Object. I have seen examples where the ScriptEngine is used in a GUI environment and an instance of the Application Object is injected into the Script giving the script access to the Objects and Methods of the Application reference. In a NON GUI environment of the Plugin, AFAIK, the object doesn't exist. Now don't be surprised if something like this shows up in a future version of RB. ;-) > -- > Larry >
