Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does End execute Terminate?

Status
Not open for further replies.

Perilous1

IS-IT--Management
Mar 10, 2005
171
US
Does the End command in VB6 execute the form's Terminate before closing down the app?
 
This was easily tested for, please disregard.

End does not execute Terminate before closing down the app.
 
From MSDN:
Note The End statement stops code execution abruptly, without invoking the Unload, QueryUnload, or Terminate event, or any other Visual Basic code. Code you have placed in the Unload, QueryUnload, and Terminate events offorms andclass modules is not executed. Objects created from class modules are destroyed, files opened using the Open statement are closed, and memory used by your program is freed. Object references held by other programs are invalidated.
Also thread222-1567400 contains a recent discussion on the use of End and why it's not advised.


Hope this helps

Andy
---------------------------------
[green]' Signature removed for testing purposes.[/green]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top