what is the Difference between Declaration and
Instantiation an object?
Answer Posted / guest
Dim obj as OBJ.CLASS with either
Set obj = New OBJ.CLASS or
Set obj = CreateObject(?OBJ.CLASS?) or
Set obj = GetObject( ,? OBJ.CLASS?)
or
Dim obj as New OBJ.CLASS
Set object = Nothing
ensure the object is release from the memory.
If this object is a form, you can add set myform = nothing
and Form_Unload() event.Maintain a habit of remove the
object by using set object = nothing which will benefit at
last. Visual Basic is supposed to automatically release
objects when they go out of scope. To free up some memory
usage, you can set the object to nothing.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How would you Create a Query Builder and Explain its uses
How would you find out the value property in Slider Bar Control?
What are forms in visual basic?
What is the default model of the form?
Can you create a Updatecascade, Deletecascade relation in Ms- Access?
What is Parser Bug?
What are the important components of OLEDB?
What are the new events in textbox that has been included in VB ?
Which method is preferred to save datas like database?
Types of cursors in DAO?
How can you Navigate from the DHTML application to another DHTML application? .
What is dao in visual basic?
Write the Steps in Creating an ActiveX Control?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
What is the latest version of visual basic?