TDataSet: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
Title: TDataSet TDataset
| Old | New | | Line |
|---|
| 1 | | - | **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. |
| 2 | | - | |
| 3 | | - | ``` pascal |
| 4 | | - | SQLTransaction1.Database := SQLConnection1; |
| 5 | | - | SQLQuery1.Transaction := SQLTransaction1; |
| 6 | | - | DataSource1.DataSet := SQLQuery1; |
| 7 | | - | DBGrid1.DataSource := DataSource1; |
| 8 | | - | ``` |
| 9 | | - | |
| 10 | | - | A dataset (for example a query result) can be edited: |
| 11 | | - | |
| 12 | | - | ``` pascal |
| 13 | | - | ds.Edit(); |
| 14 | | - | ds.FieldByName('NAME').AsString := 'Edited name'; |
| 15 | | - | ds.Post(); |
| 16 | | - | ds.UpdateMode := upWhereAll; |
| 17 | | - | ds.ApplyUpdates(); |
| 18 | | - | ``` |
| 19 | | - | |
| 20 | | - | ## Non-abstract descendants |
| 21 | | - | |
| 22 | | - | - [[TBufDataset]] - |
| 23 | | - | - [[TMemDataset]] - |
| 24 | | - | - [[TSdfDataSet]] - |
| 25 | | - | - [[TFixedFormatDataSet]] |
| 26 | | - | - [[TDbf]] - connect to dBase |
| 27 | | - | - [[TParadox]] - connect to Paradox/BDE (needs dlls, less features, read/write) |
| 28 | | - | - [[TParadoxDataSet]] - connect to Paradox/BDE (more features, read-only) |
| 29 | | - | - [[TFPCodeGenerator]] |
| 30 | | - | - [[TSQLQuery]] - connect to results of a SQL-query |
| 31 | | - | |
| 32 | | - | ## See also |
| 33 | | - | |
| 34 | | - | - [[doc:fcl/db/tdataset.html|TDataSet doc]] |
| 35 | | - | - [[TBufDataset]] |
| 36 | | - | - [[TMemDataset]] |
| 37 | | - | |
| 38 | | - | --- |
| 39 | | - | *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](/wiki-contact).* |
| 1 | + | #REDIRECT [[TDataSet]] |
Back to history