Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execscript is lost in space
Message
From
18/02/2004 12:36:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00878108
Message ID:
00878397
Views:
31
This message has been marked as the solution to the initial question of the thread.
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
Next
Reply
Map
View

Click here to load this message in the networking platform