General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only