Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read Events
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Read Events
Miscellaneous
Thread ID:
00409440
Message ID:
00409440
Views:
49
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?
Next
Reply
Map
View

Click here to load this message in the networking platform