Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET and RDO 1

Status
Not open for further replies.

vbtest5

IS-IT--Management
Nov 16, 2002
37
0
0
IN
Hi,

I have a VB6 project that we need to migrate to VB.NET. I used the migration wizard. At one point, the VB6 code line is:

Private myArrary() as NEW RDO.Connection.

Now, after conversion, the keyword NEW gives error saying that array cannot have new keyword. What is the solution?

Secondly, can I still continue to use RDO in VB.NET?

Regards
 
First,
In Framework 1.1, there's no Connection object in RDO.
There exists RDO.rdoConnection.

Second,
It has something to do with myArray variable.

Try "just" declaring it:
Code:
Private myArrary() as RDO.rdoConnection

Then you can set it as NEW each time you create one element of the array:
Code:
myArrary(0) = New RDO.rdoConnection

Third, Yes, you can use RDO in .Net.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top