Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor
Message
De
19/09/2003 15:33:38
 
 
À
19/09/2003 15:16:53
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00830756
Message ID:
00830758
Vues:
20
Yep, DataSets or DataTables.
DataSet ds = new DataSet();
ds.Tables.Add(new DataTable());
ds.Tables[0].Columns.Add(new DataColumn("MyColumn");
DataRow row = ds.Tables[0].NewRow();
row["MyColumn"] = Whatever;
ds.Tables[0].Rows.Add(row);

// etc ....
~~Bonnie

>When using VFP, I would do the following to create a cursor and populate it:
>
>CREATE CURSOR mycursor (field1 C(10), field2 I, field3 D)
>INSERT INTO mycursor (field1, field2, field3) VALUES ("TEST", 1, DATE())
>
>Is there a simular way to do something like this in .Net?
>
>Thanks,
>
>Jerry
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform