what is the Difference between Declaration and
Instantiation an object?
Answer / 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 |
What is the need of tabindex property is label control.
What is the purpose of the DoEvents command?
What methods are used for DBGrid in unbound mode?
How do you change the system menu (on the Control-Menu Box)?
How would you attach pictures in column headers of List View Control?
How can I speed up my VB database application?
What is OLEDB?
What is instantiating?
What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
Explain about declaring variables in Visual basic?
How do I implement an incremental search in list/dir/combo/file boxes?
Differentiate between DAO,ADO and Adodc as in data access objects?