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
Explain the usage of Web Browser Control?
Explain about trees structures work.
What is Pseudocode?
what are the different Types of Recordsets.
1s it posible to Create Tables Through Querydef?
Types of DBCombo boxes
How do I tell when an application executed using the SHELL command is finished?
Which method is preferred to save datas like database?
How would you add column headers in listview control?
How would you add elements in TreevieW Control.
Advantage of ActiveX Dll over Active Exe.
How can you Implement windows functionality in VB?
How to use advanced data-bound controls.
Is visual basic c#?
What do you know about user forms.