Sign in Join
Wiki copytemporary

TDataSource/ja: what changed

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

OldNewLine
11**TDataSource** ![](/wiki-images/8/83/Tdatasource.png)はデータベースを表す[[TDataSet/ja]]に基づいたコンポーネントと[[TDBGrid/ja]]といったデータコントロールを仲介する。
22
33典型的には`TDataSource`は`TSQLQuery`や、他の`TDataSet`の派生に接続するフィールド「DataSet」を含む。DataSourceはTDBGridや他のデータコントロールコンポーネントの「DataSource」に接続されるべきである。
44
5-` SQLTransaction1.Database := SQLConnection1;`\
6-` SQLQuery1.Transaction := SQLTransaction1;`\
7-` `**`DataSource1`**`.DataSet := SQLQuery1;`\
8-` DBGrid1.DataSource := `**`DataSource1`**`;`
5+``` pascal
6+ SQLTransaction1.Database := SQLConnection1;
7+ SQLQuery1.Transaction := SQLTransaction1;
8+ DataSource1.DataSet := SQLQuery1;
9+ DBGrid1.DataSource := DataSource1;
10+```
911
1012## 以下も参照のこと
1113
1214- [[doc:fcl/db/tdatasource.html|TDataSource doc]]
1315- [[TSQLTransaction/ja]]
1416- [[TSQLQuery/ja]]
1517
1618---
1719*From the Free Pascal wiki, page "TDataSource/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](/wiki-contact).*

Back to history