Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems in building executable file
Message
De
07/08/2008 12:57:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/08/2008 12:42:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01337294
Message ID:
01337306
Vues:
8
>My application runs while in Foxpro but will not run from the execuable file. It runs the code in the form load but then quits. No error windows. Any help would be appreciated.
>Jerry

The READ EVENTS command will wait for user input. Your main program can be roughly considered to consist of three parts:

1. The setup code.

2. The single command READ EVENTS, a kind of endless loop that waits for user input.

3. Any cleanup code, once the user quits.

Somewhere - for example, from the menu command "File | Quit", you should give the command CLEAR EVENTS, which will break out of this "endless loop" and run the cleanup code.

By the way, the lack of a READ EVENTS will not only cause problems in the EXE; from the VFP IDE, you will see the Command Window while your program is running - it should normally not be visible.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform