Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXECSCRIPT and classes
Message
From
26/04/2006 15:19:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01116690
Message ID:
01116816
Views:
35
>>>>>I've got a VFP 9 app. that has some hook points in it to let me override existing behavior via an EXECSCRIPT call on a memo field. The problem I've run into is when I want to call an existing class library (that is built into the EXE and has SET CLASSLIB set) from within the EXECSCRIPT code. VFP fails saying it can't find the class. I modified the syntax to use NEWOBJECT() instead, e.g. NEWOBJECT("MyClass", "MyLibrary", "MyExe.EXE"). That fails with an "Invalid file descriptor". I've checked to make sure that the SET CLASSLIB is set (which it is), but still no luck.
>>>>
>>>>The EXECSCRIPT() runs code as external program. As result the code cannot see files, reports, class libraries, e.t.c included in the calling application.
>>>
>>>I figured that, that's why I attempted to use NEWOBJECT instead. It seems like that should have worked.
>>
>>Paul,
>>
>>This problem was recently discussed on the VFP Russian forum I visit now and then. If you want I may try to give you a gist of ideas or if there is a chance of your undestanding Russian I can point you out to this thread (less work for me <g>). What do you prefer?
>
>One of the guys here speaks Russian, so if you could point me to the thread, that would be helpful.

After building under VFP9 new forms are missing from exe Thread #1078041 Message #1078041
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform