Sign in Join
Wiki copytemporary

TDataSet

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

TDataSet is the main link to the actual data in a database. A TDataSet descendant acts like a cursor on a table or query-result.

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

A dataset (for example a query result) can be edited:

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

Non-abstract descendants

See also


From the Free Pascal wiki, page "TDataSet", as it stood on 2021-08-11 after a change by Arent, 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.

Revision 3, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.