Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddNew in ADO.NET
Message
De
27/06/2002 19:21:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
AddNew in ADO.NET
Divers
Thread ID:
00673112
Message ID:
00673112
Vues:
42
I am getting some negative feed back from an outside development team to the effect that "AddNew" is not a fuction that is available in ADO.NET.

By way of illustration, I am informed the following code has no equivilent in ADO.NET, specifically with regard to adding a new record to the recordset.

Note: the connection is to a VFP backend
loRS = createobject( 'ADODB.Recordset' )
loRS.ActiveConnection = loConn
loRS.CursorType = 3 && Static
loRS.LockType = 3 && Optimistic record locking
loRS.CursorLocation = 1 && server side cursors
loRS.Open('use vMyView')
*************
loRS.AddNew()
*************
loRS.Fields('CutOff' ).Value = {02/06/1997}
loRS.Update() && Record inserted into glbatch and gljob
loRS.Close()
loRS = Null

If anyone can shed some light on this for me, your comments will be much appreciated.

Regards,
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform