Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO recordsets
Message
 
À
01/06/2001 01:24:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00513265
Message ID:
00513785
Vues:
22
Nick;

I use a static recordset. Here is some of the code to show the concept...

' Create variables...
Dim oConn
Dim oRS

' Create connection...
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Master","",""

' Create ADO recordset...
Set oRS = Server.CreateObject("ADODB.Recordset")
oRS.Open "Select * from Client",oConn,3,3

' Add a new record...
oRS.AddNew

' Fields...
oRS("clientname").Value = trim(clientname)
oRS("address").Value = trim(address)

oRS.Update

oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing

I also generate primary keys, etc, but do not wish to confuse the code. This is something I have been doing for several years so if you cannot get it to work we can start looking into specific things.

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform