Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 are the differences between image and picture controls?

3 Answers  


How many tabs in a tabbed dialog do you consider appropriate?

0 Answers  


What is DBFailError?

1 Answers  


How would you define and use a Boolean in VB?

2 Answers   Asteroid Software Services, Microsoft,


How do you create a form in visual basic?

0 Answers  


What are some methods you can use to send data from one VB executable to another one?

0 Answers  


What does DoEvents do?

2 Answers  


I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?

0 Answers  


Where can I get updated VB and other Microsoft files?

0 Answers  


Is visual basic easy?

0 Answers  


What is ODBC?

1 Answers  


To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

0 Answers  


Categories