Results 1 to 2 of 2

Thread: What is the difference between Declaration and Instantiation an object?

  1. #1
    Join Date
    Jan 2009
    Posts
    36

    What is the difference between Declaration and Instantiation an object?

    Hello,

    What is the difference between Declaration and Instantiation an object?

    Regards,

  2. #2
    Join Date
    May 2008
    Posts
    35

    Re: What is the difference between Declaration and Instantiation an object?

    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.

Similar Threads

  1. Why Doctype declaration is there in HTML?
    By T0tal L0$$ in forum Software Development
    Replies: 3
    Last Post: 22-09-2009, 12:46 PM
  2. Explicit template instantiation
    By Wyvern in forum Software Development
    Replies: 4
    Last Post: 02-05-2009, 07:15 PM
  3. Replies: 5
    Last Post: 02-03-2009, 09:00 PM
  4. What is the Difference between Class and Object?
    By RupaliP in forum Software Development
    Replies: 5
    Last Post: 28-02-2009, 07:03 PM
  5. Difference between Implicit and Explicit Declaration
    By vinodpathak_214 in forum Software Development
    Replies: 3
    Last Post: 16-01-2009, 10:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,382,195.40949 seconds with 16 queries