borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Vb.Net tutorial / getting started course notes)Next Topic (JPG to AVI) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : VB.Net related question ??
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon VB.Net related question ??

what is difference between two declaration in vb.net like
dim eno as integer
dim eno as new integer()
and i want to know what is the advantage of second type of declaration.

27-04-2003 at 12:18 PM
View Profile Send Email to User Show All Posts | Quote Reply
abdelaleem
Level: Guest

icon Re: VB.Net related question ??

When you declare with New you are instantiating and declaring the variable in the same line..see the Example:
Dim Pos As Point
Pos = New Point()

is similar to
Dim Pos As New Point()


[Edited by abdelaleem on 14-10-2003 at 04:01 PM GMT]

14-10-2003 at 01:59 PM
| Quote Reply
AndreaVB Forum : VB.Net : VB.Net related question ??
Previous Topic (Vb.Net tutorial / getting started course notes)Next Topic (JPG to AVI) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder