In the third example, there are 2 problems:
Dim objDataSet as DataSet() declares an array of dataset
So
Set objDataSet = New DataSet() would not work, since you would be trying to
assing one DataSet to a variable that holds an array of datasets. Also,
there is no need for 'Set' in VB.NET.
But, if you had it:
Dim objDataSet as DataSet
objDataSet = New DataSet()
Then all 3 would be equivalent.
"Morten Snedker" <morten_spammenot_ATdbconsult.dk> wrote in message
news:d9********************************@4ax.com...
What is the difference between
Dim objDataSet As DataSet = New DataSet()
and
Dim objDataSet As New DataSet()
and
Dim objDataSet As DataSet()
Set objDataSet = New DataSet()
(if any?)
Regards /Snedker