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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the Differences between ActiveX Control and Standard Control?

3698


Types of Resultsets.

2026


What is form in visual basic?

1012


How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

1663


DHTML Is used for what?

1891


What are the rules which should be followed while naming a variable in VB?

1047


How would you create your application in DHTML?

1968


How many File System Controls are there ? Explain.

2031


How do I play MID, WAV or other multimedia files?

1513


How can you check whether a record is valid record or Invalid record using ADO control or Object?

1938


What do you know about chaining views.

1065


What is vbs file?

1001


Is a foo VBX/DLL available as shareware/freeware?

1613


What is the use of property page Wizard in ActiveX Control?

2488


How do I create a new form in visual basic?

1049