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 is the return type of Instr and Strcmp?

3 Answers  


What is recordset in visual basic?

0 Answers  


Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?

0 Answers  


What are forms in visual basic?

0 Answers  


How do I set the Windows wallpaper at runtime?

0 Answers  


How can you Add API functions to your Application?

1 Answers  


How do I use GetPrivateProfileString to read from INI files?

0 Answers  


What is ActiveX Document?

1 Answers  


what is the difference between name property and caption property in visual basic?

10 Answers   HCL,


How to trap Data Base Error?

1 Answers  


When should we use recursive programming?

0 Answers  


what are the Differences Object and Class?

2 Answers  


Categories