Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What does "an object is released" mean?

Posted on 1999-06-30
2
Medium Priority
?
146 Views
Last Modified: 2010-05-02
In MSDN Online Library

Unload event occurs when an object is released
Queryunload event occurs before a form is unloaded.
Destroy event occurs when an object is released.

What does "an object is released" mean?

Actually I'm naive to VB.

Are there clear cut explanations on VB Events?

Thank you.
0
Comment
Question by:iamjhkang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
davepcam1 earned 90 total points
ID: 1521240
When u create an instance to a object (e.g set nodex = treeview1.nodes) you literally are creating like a gateway to this object, nodex is the gateway to treeview1.nodes

when you release it (e.g set nodex = nothing) it flushes system resources, it would be like closing the gateway to treeview1.nodes

when you set it to nothing its unloaded, like it says, its nothing

Good luck
0
 
LVL 1

Expert Comment

by:db_tiger
ID: 1521241
The events are not bad desribed in the vb help. QueryUnload is an event, that just happens before Unload: You can use it, if you want for example pervent a user from closing a window without saving his work, as you know it from most texteditors.
QueryUnload has a parameter - i think CancelUnload, that you must set to true, if you want the unload process to be stopped.

It is worth the work, to test out some events, to see when and and after what tehy appera - I used to take labels on an form, on which I changed the labels according to differenet events (HIDE, SHOW, LOAD, UNLOAD, QUERYUNLOASD etc.) so I learned their meanings.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question