Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execscript is lost in space
Message
De
18/02/2004 12:36:56
 
 
À
17/02/2004 19:45:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00878108
Message ID:
00878397
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform