What's different in deep of "New"

  • 14 years ago

    i was wonder that some of sample code look like below, what's the different in deep.

    - Dim fso As New FileSystemObject

    - Dim fso as FileSystemObject


  • 14 years ago
    When you use New keyword memory will be allocated for the particular object,else object refrence is not set error will be thrown
  • 14 years ago

    Thank you for reply, but i'm quite not understand.

    so when we should using New or not using?

  • 14 years ago
  • 14 years ago
    Go Through Is Site

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow