What's different in deep of "New"

  • 13 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

    ???

  • 13 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
  • 13 years ago

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

    so when we should using New or not using?

  • 13 years ago
  • 13 years ago
    Go Through Is Site
    Site
    Identifier

Post a reply

Enter your message below

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

Contribute

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.

“Before software should be reusable, it should be usable.” - Ralph Johnson