"vighnesh" <vi******@nannacomputers.comschrieb:
Please let me know the difference between the following statements.
Dim i as Integer
Dim i as New Ineger
As I tested both declares a variable 'i' of type integer intialized to
value '0'.
The two lines are semantically equivalent.
Dim s as String
Dim s as New String("s",1)
These lines are semantically different as 'String' is a reference type. The
first variable will be initialized to 'Nothing', the second will have the
value "s".
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>