End Statement
The End statement stops execution abruptly.
Execution is stopped without invoking the Unload, QueryUnload or Terminate events.
Any code in the Unload, QueryClose or Terminate events of forms and classes are not executed.
Objects created from class modules are destroyed.
Files opened using the Open statement are closed
Any memory used by the application is released
The End statement resets all module level variables and all static local variables in all modules.
Terminology
Procedure - taken to mean a sub, function or property
Exit Statement - taken to mean exit sub, exit function or exit property
End Statement - taken to mean end sub, end function or end property
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext