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 data control in vb?
Write the steps in Creating ActiveX Dll and Active Exe?
What is the difference between COM and DCOM?
9 Answers 7 Seas, American Infoserv, Microsoft, SRMSCET,
How many images can be placed in the image list ?
What is datagrid in vb net?
When should we use recursive programming?
Explain about the creation of EXE files with Visual Basic?
What is constructors and distructors.
Difference between Linked Object and Embedded Object?
What is the default model of the form?
Why can't I use an index with my VB accessed database?
How would you navigate between one document to another document in Internet Explorer ?