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 is form in visual basic?
Draw Sequence Modal of DAO? Explain.
What is DBSqlPassThrough?
How can I speed up my VB database application?
How can you Add API functions to your Application?
When should we use recursive programming?
It possible to call OLEDB?s Features directly in VB without using any control?
Why API functions are Required?
Scope of API?s can be of different types, what are they Why API functions are Required?
Types of cursors in RDO.
What is shortcut menu and explain "The ole control's shortcut menu".
What are the Internet tools available in VB 6.0?
How would you map properties to controls by using ActiveX Control Interface Wizard?
What are the tools available for Debuggiu in VB?
Give brief description about class?