Difference between revisions of "TDataSet"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | 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. | |
SQLTransaction1.Database := SQLConnection1; | SQLTransaction1.Database := SQLConnection1; | ||
SQLQuery1.Transaction := SQLTransaction1; | SQLQuery1.Transaction := SQLTransaction1; | ||
DataSource1.'''DataSet''' := SQLQuery1; | DataSource1.'''DataSet''' := SQLQuery1; | ||
− | DBGrid1.DataSource := | + | DBGrid1.DataSource := DataSource1; |
== non-abstract descendants == | == non-abstract descendants == |
Revision as of 23:17, 17 July 2016
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.
SQLTransaction1.Database := SQLConnection1; SQLQuery1.Transaction := SQLTransaction1; DataSource1.DataSet := SQLQuery1; DBGrid1.DataSource := DataSource1;
non-abstract descendants
- TBufDataSet -
- TMemDataSet -
- TSdfDataSet -
- TFixedFormatDataSet
- TDbf - connect to dBase
- TParadox - connect to Paradox/BDE
- TFPCodeGenerator
- TSQLQuery - connect to results of a SQL-query
Freepascal Documentation