END Statement doesn't end program! 
Author Message
 END Statement doesn't end program!

I've realized that the END statement doesn't always end my  program. I end
my program by placing the END statement in a particular form's UNLOAD event
so that the program ends even when the user clicks on close in the form's
control box. How can I solve this. I've noticed that this especially happens
when I double-click on the form's control box.


Wed, 26 Nov 1997 03:00:00 GMT  
 END Statement doesn't end program!

Quote:

>I've realized that the END statement doesn't always end my  program. I end
>my program by placing the END statement in a particular form's UNLOAD event
>so that the program ends even when the user clicks on close in the form's
>control box. How can I solve this. I've noticed that this especially happens
>when I double-click on the form's control box.

Try putting a loop before the end-statement like this:
        for a% = 0 to 9
                x% = doevents
        next a%

It worked for me. :-)
Best of luck,

Lea



Thu, 27 Nov 1997 03:00:00 GMT  
 END Statement doesn't end program!

Quote:

>I've realized that the END statement doesn't always end my  program. I end
>my program by placing the END statement in a particular form's UNLOAD event
>so that the program ends even when the user clicks on close in the form's
>control box. How can I solve this. I've noticed that this especially happens
>when I double-click on the form's control box.

A common cause is to hide a form which you don't need and then try to
unload the main form using Alt-F4. This stops the End statement of the
command button being processed and the hidden form stays in memmory
where it is still visible to TaskManager. Make sure all forms are
unloaded or add End to the unload procedure of the form which carries
the exit/control box.


Thu, 27 Nov 1997 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. End doesn't end

2. Unloading all forms doesn't end program

3. program doesn't end

4. Program doesn't end after printreport

5. vb emailer doesn't send till program ends

6. mde's and F-end/B-end

7. (2nd Post) BASIC programming advice needed: PKWARE'S compression utilities front end application - PROGRAMMING PROJECT

8. Cancel button doesn't end macro

9. Setting application object to nothing doesn't end the process

10. End of File doesn't seem to work

11. ActiveX exe doesn't end...

12. App doesn't end when form unloaded

 

 
Powered by phpBB® Forum Software