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 is form in visual basic?

785


Draw Sequence Modal of DAO? Explain.

1962


What is DBSqlPassThrough?

3015


How can I speed up my VB database application?

1288


How can you Add API functions to your Application?

1578


When should we use recursive programming?

791


It possible to call OLEDB?s Features directly in VB without using any control?

1836


Why API functions are Required?

2041


Scope of API?s can be of different types, what are they Why API functions are Required?

1728


Types of cursors in RDO.

1811


What is shortcut menu and explain "The ole control's shortcut menu".

814


What are the Internet tools available in VB 6.0?

2627


How would you map properties to controls by using ActiveX Control Interface Wizard?

2007


What are the tools available for Debuggiu in VB?

1721


Give brief description about class?

1690