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 default workspace?

0 Answers  


Is there any way to pass a variable to a form apart from using global variables?

0 Answers  


1s it posible to Create Tables Through Querydef?

0 Answers  


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

0 Answers  


which VB constant make the menu item in centre?

1 Answers  


What is RDO?

1 Answers  


How would you attach pictures in Treeview Control?

0 Answers  


How would you create Visual basic Document file?

0 Answers  


When/Why should I use Option Explicit?

0 Answers  


What is VB ShellScripting?

1 Answers   Wipro,


what is the property to resize a label control according to your caption?

1 Answers  


what are the Types of Resultsets?

0 Answers  


Categories