V
vighnesh
Hi Folks
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'.
Please let me know the significance of 'New' keyword in the declaration. I
suppose 'New' is used to create an object of a class, but here 'Integer' is
not a Reference Type. The same with the following statements.
Dim s as String
Dim s as New String("s",1)
Thanking you in advance.
Regards
Vighneswar
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'.
Please let me know the significance of 'New' keyword in the declaration. I
suppose 'New' is used to create an object of a class, but here 'Integer' is
not a Reference Type. The same with the following statements.
Dim s as String
Dim s as New String("s",1)
Thanking you in advance.
Regards
Vighneswar