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

Is it possible to call backend procedures with ADO control?

1 Answers   TCS,


What are the types of API Types?

3 Answers  


how to get printout between two dates informations in datareport in vb6.0

1 Answers  


1s it posible to Create Tables Through Querydef?

0 Answers  


What is visual basic used for?

0 Answers  






Write the Steps in Creating an ActiveX Control?

0 Answers  


How would you find out the value property in Slider Bar Control?

1 Answers  


To populate a single column value which dbcontrols you to use?

0 Answers  


advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id

0 Answers  


Does VB support object-oriented concepts? Explain..

3 Answers  


what is the Difference between Linked Object and Embedded Object?

0 Answers  


How would you navigate between one document to another document

0 Answers  


Categories