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
how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?
What are the Internet tools available in VB 6.0?
Can a VB application be an OLE server?
How can you save and Get data from Clipboard/ Recordset object consists what?
How would you convert a form into document?
What is data binding in vb net?
Difference between Class Module and Standard Module?
What is ODBC Direct and Microsoft Jet Database Engine ?
What is OLEDB?
Is there any Edit method in ADO Data Access method?
What is the difference between adodc and adodb in vb?
How do I get my application on top?
How would you run your ActiveX Document Dll?
How would you use ActiveX Dll and ActiveX Exe in your application?
Difference between Linked Object and Embedded Object?