Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble w/ runtime
Message
 
À
12/11/1998 18:10:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00157220
Message ID:
00157224
Vues:
24
>I have a app which includes a menu, form, and various PRGs. start.prg is compiled into an exe and it calls main.prg:
>
>main.prg:
>do menu.mpr
>do form main
>
>When I run the exe, the runtime starts, then immediatly closes, without leaving time for the user to do anything. How can I stop this from happening. I tried making the form modal, but then the user cannot access the menu. This code works fine in the full version, but runs through without stoping in the runtime. Any help would be appreciated.

Matt,

You need to activate the event handler in VFP. In the development system the command window holds the app up, but in runtime there is no command window. Modify you start.prg to;

* main.prg:
do menu.mpr
do form main
READ EVENTS

and add a quit option to your menu that issues a CLEAR EVENTS.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform