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 data control in vb?

0 Answers  


Write the steps in Creating ActiveX Dll and Active Exe?

0 Answers  


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 ?

2 Answers  


What is datagrid in vb net?

0 Answers  






When should we use recursive programming?

0 Answers  


Explain about the creation of EXE files with Visual Basic?

0 Answers  


What is constructors and distructors.

0 Answers  


Difference between Linked Object and Embedded Object?

0 Answers  


What is the default model of the form?

0 Answers   Transtech,


Why can't I use an index with my VB accessed database?

0 Answers  


How would you navigate between one document to another document in Internet Explorer ?

0 Answers  


Categories