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

Explain the usage of Web Browser Control?

1927


Explain about trees structures work.

991


What is Pseudocode?

1356


what are the different Types of Recordsets.

2084


1s it posible to Create Tables Through Querydef?

2099


Types of DBCombo boxes

2004


How do I tell when an application executed using the SHELL command is finished?

1485


Which method is preferred to save datas like database?

1906


How would you add column headers in listview control?

2071


How would you add elements in TreevieW Control.

2111


Advantage of ActiveX Dll over Active Exe.

1981


How can you Implement windows functionality in VB?

2043


How to use advanced data-bound controls.

1081


Is visual basic c#?

887


What do you know about user forms.

1056