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
what are the different Types of Recordsets.
Parts of ODBC?
Types of DBCombo boxes
How to find the current record position in data control?
___ is the control used to call a windows application.
Types of cursors in RDO.
How can I call a 'hidden' DOS program from VB?
What is file in vb?
___ is a property to resize a label control according to your caption.
what is the control used to call a windows application.
Explain Default cursor Type and LockEdits type in RDO?
what are the Differences between Recordset and Resultsets?
Explain the working with task in Gantt chart view.
How would you add elements in TreevieW Control.
Maximum Control Names length?