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
Is visual basic easy?
What is the use of Visual Basic Document file?
How about Access 2.0 compatibility?
Difference between Recordset and Resultsets.
Is there a way to break long lines in VB code?
How the image application?
What is constructors and distructors.
State about the different types of visual basic data?
I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?
How would you find out the value property in Slider Bar Control?
When should we use recursive programming?
What is ActiveX? Explain.
What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
___,__,___ are the type of combo box?
DHTML Is used for what?