Copie du wikimiroir

Ceci est un miroir du wiki de pascal.chat. La modification, l’historique et la connexion se trouvent là-bas.

TDataSet/fr

English · Français · Polski · Русский · 日本語

TDataSet est le lien principal vers les données actuelles dans une base de données. Un descendant de TDataSet agit comme un curseur sur une table ou un résultat de requête.

pascal
  SQLTransaction1.Database := SQLConnection1;
  SQLQuery1.Transaction := SQLTransaction1;
  DataSource1.DataSet := SQLQuery1;
  DBGrid1.DataSource := DataSource1;

Un DataSet (p.ex. un résultat de requête) peut être édité :

pascal
  ds.Edit();
  ds.FieldByName('NAME').AsString := 'Edited name';
  ds.Post();
  ds.UpdateMode := upWhereAll;
  ds.ApplyUpdates();

Descendants non abstraits

Voir aussi


From the Free Pascal wiki, page "TDataSet/fr", as it stood on 2020-02-29 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Version 1, dernière modification par WikiArchive .