what is the Difference between Declaration and
Instantiation an object?



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

Post New Answer

More Visual Basic Interview Questions

What is the need of tabindex property is label control.

0 Answers  


What is the purpose of the DoEvents command?

2 Answers  


What methods are used for DBGrid in unbound mode?

1 Answers  


How do you change the system menu (on the Control-Menu Box)?

0 Answers  


How would you attach pictures in column headers of List View Control?

0 Answers   RRB,


How can I speed up my VB database application?

0 Answers  


What is OLEDB?

0 Answers  


What is instantiating?

0 Answers  


What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.

0 Answers  


Explain about declaring variables in Visual basic?

0 Answers  


How do I implement an incremental search in list/dir/combo/file boxes?

0 Answers  


Differentiate between DAO,ADO and Adodc as in data access objects?

0 Answers  


Categories