Difference between revisions of "TDataSet"

From Lazarus wiki
Jump to navigationJump to search
m (→‎Freepascal Documentation: Fixed hyperlink)
Line 1: Line 1:
<tt>'''TDataSet'''</tt> is the main link to the actual data in a database. A TDataSet acts like a cursor on a table or query-result.   
+
<tt>'''TDataSet'''</tt> 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;
Line 5: Line 5:
 
   DataSource1.'''DataSet''' := SQLQuery1;
 
   DataSource1.'''DataSet''' := SQLQuery1;
 
   DBGrid1.DataSource := '''DataSource1''';
 
   DBGrid1.DataSource := '''DataSource1''';
 +
 +
== non-abstract descendants ==
 +
* [[TBufDataSet]]
 +
* [[TMemDataSet]]
 +
* [[TSdfDataSet]]
 +
* [[TFixedFormatDataSet]]
 +
* [[TDbf]]
 +
* [[TParadox]]
 +
* [[TFPCodeGenerator]]
  
 
== Freepascal Documentation ==
 
== Freepascal Documentation ==

Revision as of 14:27, 4 July 2014

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

Freepascal Documentation