tri_inn Level: Regular User Registered: 26-08-2002 Posts: 395
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
|
abdelaleem Level: Guest
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]