Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read Events
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Read Events
Divers
Thread ID:
00409440
Message ID:
00409440
Vues:
50
I have a startup program that calls up a form that automatically zips files then goes away. The form is top-level and I have a clear events in its Destroy() event. The code to automatically zip the files is in the forms Activate() event. Here's the startup prg code:

********************
Zip_File="k:\backup.zip "
Source_Files="m:\data\*.* "
do form main
read events
*Other code for other forms...
*********************

The problem I found through debugging is that the program never gets past the READ EVENTS when the form is destroyed, so no other code can run in the startup prg. This is the code in the Form.Activate():

This.ZipData()
release thisform

I tried moving this code to other events, like INIT(), but to no avail. Does anyone know what I'm doing wrong?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform