G
Guest
Hello:
How do I know when to use 'New' when declaring a variable? How do I know
when an instance can be created?
Ex:
Dim x As New System.Random
-versus-
Dim mailMessage As System.Web.Mail.SmtpMail (this produces an error!)
VS.Net 2003
Thanks.
How do I know when to use 'New' when declaring a variable? How do I know
when an instance can be created?
Ex:
Dim x As New System.Random
-versus-
Dim mailMessage As System.Web.Mail.SmtpMail (this produces an error!)
VS.Net 2003
Thanks.