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 |
Is it possible to call backend procedures with ADO control?
What are the types of API Types?
how to get printout between two dates informations in datareport in vb6.0
1s it posible to Create Tables Through Querydef?
What is visual basic used for?
Write the Steps in Creating an ActiveX Control?
How would you find out the value property in Slider Bar Control?
To populate a single column value which dbcontrols you to use?
advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id
Does VB support object-oriented concepts? Explain..
what is the Difference between Linked Object and Embedded Object?
How would you navigate between one document to another document