Home > Net >  Consult you about vb some methods and parameters
Consult you about vb some methods and parameters

Time:09-15

Recently doing a vb upgrade vb.net web project, meet don't know how to convert a vb code vb.net
That's what I put in vb
The Set adoRst=CreateObject (" ADODB. You ")
With adoRst
. CursorLocation=adUseClient
Call the Open (adoCmd adOpenStatic, adLockReadOnly)
Set the ActiveConnection=Nothing
End With

This code is how to implement in the vb.net, look online for cursor Settings, I'm not quite understand the cursor
Hope you let us know a thing or two
And the vb you use what to replace in vb.net is better? (the DataReader? Dataadapters?)
Because the current vb code not only with this query is used to update the database
A lot of method parameters and return values is also one of the types, so more troublesome, very headache,,,

Hope the great god taught,,

CodePudding user response:

ADO here should be a way of accessing network database, you can use SQLconnect instead of it,

CodePudding user response:

Consult a great god ~ great god in where

CodePudding user response:

2.8 Library reference "Microsoft ActiveX Data Objects"

Variable declaration
Dim adoRst as ADODB. You

Instantiation
AdoRst=new ADODB. You

Or
Dim adoRst as new ADODB. You

Other basic unchanged
  • Related