Sign in Join
Wiki copytemporary

Revision 1 of 2, by Ariben on 3-31-2024. The page as it is now.

TDataSet/ja

TDataSetはデータベースの実際のデータに対する主なリンクである。TDataSetの派生はテーブルもしくはクエリの結果のカーソルのような振る舞いをする。

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

データセット(例えば、クエリの結果)は以下のように編集できる:

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

非抽象的派生

以下も参照のこと


From the Free Pascal wiki, page "TDataSet/ja", as it stood on 2024-03-31 after a change by Ariben, 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.