Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execscript is lost in space
Message
From
19/02/2004 10:27:22
 
 
To
18/02/2004 12:36:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00878108
Message ID:
00878721
Views:
32
Thanks Doung,

An excellent solution. This will allow me the freedom that execscript provides while still using the resources of the application.

Thanks

Glenn



>Hi Glenn.
>
>>Too bad execscript knows nothing about the EXE or APP.
>
>It actually makes sense once you realize what EXECSCRIPT() does:
>
>- It outputs the code string to a temporary PRG
>- It compiles that PRG
>- It runs the resulting FXP
>- It deletes the PRG and FXP files
>
>Since the code is actually in an external FXP when it executes, it doesn't know anything about what's inside the EXE. One solution is to write the FRX/FRT files out to disk before using EXECSCRIPT() and then delete them afterward. Another is to call back into the EXE to actually run the report. For example:
>
* do whatever setup stuff you need
>oApp.RunReport('Whatever.FRX')
>Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform