Sign in Join
Wiki copytemporary

TDataSet/fr: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: TDataSet/fr

OldNewLine
1+**TDataSet** est le lien principal vers les données actuelles dans une base de données. Un descendant de TDataSet agit comme un curseur sur une table ou un résultat de requête.
2+
3+``` pascal
4+ SQLTransaction1.Database := SQLConnection1;
5+ SQLQuery1.Transaction := SQLTransaction1;
6+ DataSource1.DataSet := SQLQuery1;
7+ DBGrid1.DataSource := DataSource1;
8+```
9+
10+Un DataSet (p.ex. un résultat de requête) peut être édité :
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+## Descendants non abstraits
21+
22+- [[TBufDataset/fr|TBufDataset]] -
23+- [[TMemDataset/fr|TMemDataset]] -
24+- [[TSdfDataSet/fr|TSdfDataSet]] -
25+- [[TFixedFormatDataSet/fr|TFixedFormatDataSet]] -
26+- [[TDbf/fr|TDbf]] - pour se connecter à dBase
27+- [[TParadox/fr|TParadox]] - pour se connecter à Paradox
28+- [[TParadoxDataSet/fr|TParadoxDataSet]] - pour se connecter à Paradox
29+- [[TFPCodeGenerator/fr|TFPCodeGenerator]] -
30+- [[TSQLQuery/fr|TSQLQuery]] - pour se connecter à des résultats d'un requête SQL.
31+
32+## Voir aussi
33+
34+- [[doc:fcl/db/tdataset.html|Doc. TDataSet]]
35+
36+---
37+*From the Free Pascal wiki, page "TDataSet/fr", as it stood on 2020-02-29 after a change by Trev, 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).*

Back to history