Another newbie quesion: Using DIM

  • Thread starter Thread starter boaz
  • Start date Start date
B

boaz

Hi,

Thanks you guys for my Event question.

In VB6, there is a big difference between the following:

1) Dim ado_obj As New ADODB.Recordset
2) Dim ado_obj As ADODB.Recordset: Set ado_obj = New ADODB.Recordset

In VB.NET, do I still new to worry about this kind of small detail?

Does 1) really the same as 2) in VB.NET, or 1) and 2) are still different in
VB.NET?



--
 
* "boaz said:
In VB6, there is a big difference between the following:

1) Dim ado_obj As New ADODB.Recordset
2) Dim ado_obj As ADODB.Recordset: Set ado_obj = New ADODB.Recordset

In VB.NET, do I still new to worry about this kind of small detail?

No. 1) does in VB.NET the same as 2).
 
Back
Top