R
Ronald S. Cook
So most of the time I need to write the following to instantiate an object:
Dim cnn As New SqlConnection()
But sometimes Intellisense tells me not to include the "new":
Dim dst As DataSet
When do I use "As New" and when don't I? Intellisense is good at letting me
know which is correct, but I'd like to understand better.
Thanks,
Ron
Dim cnn As New SqlConnection()
But sometimes Intellisense tells me not to include the "new":
Dim dst As DataSet
When do I use "As New" and when don't I? Intellisense is good at letting me
know which is correct, but I'd like to understand better.
Thanks,
Ron