从收集数据收集"ADOTable"中的数据到 TXT 访问
collecting data fromcollect data in the "ADOTable" into txt access
我用C ++ Builder XE
和ms access 2010
创建应用程序。
作者: ADOConnection
> ADOTable
> DataSource
> DBGrid
.
如何收集DBGrid
中显示的数据。我知道使用以下代码:
AnsiString tmpText;
tmpText+=ADOTable2->FieldByName("Name")->AsString;
但无法获取DBGrid
中的所有数据
例如:
ADOTable1->First(); // go to first record
for(int i = 0; i < ADOTable1->RecordCount; i++){
// read all columns needed by using ADOTable1->FieldByName("FieldName")->As..
ADOTable1->Next(); // go to next record
}
相关文章:
- 如何在 Gnuplot 中分别绘制 2 个文件数据?我有一个文件"sin.txt",另一个文件"cos.txt",我想将它们分别绘制在一个图表上
- 尝试从 txt 文件中读取两条数据并输出它们 [C++]
- 如何使用C++删除/更新txt文件中的特定数据
- 我们可以从 TXT 文件中读取数据并使用 C 和 C++ 将其保存到 SQL 数据库吗?
- 如何使用C++删除/更新txt文件中的特定数据?
- C++将 txt 数据和字符读取到 2D 数组中
- 如何从 txt 文件中删除数据/内容
- 从 txt 文件中读取数据的最简单方法
- 从 txt 文件中读取数据的 Getline
- 读取 C++ 中的 txt 数据,展开为行或列并排序
- C 从TXT文件读取数据并将其放入2D数组中
- 如何验证文件中.txt用户数据?C++
- 将数据从 TXT 文件存储到 strucutre 数组中
- 如何用 c++ 读取 txt 文件,如果我们不知道其中有多少个数据字符串,以及每行有多长?
- Linux 在从文件中读取数据并放入矢量时比 Windows 快得多.txt.我将如何加速Windows以做同样的事情
- 尝试从 txt 读取数据
- 使用 for 循环多次将数据输入到 txt 文件
- 如何使用 txt 文件中的竖条管读取数据
- 从TXT中取出大数据并对其进行排序
- Cin 执行不起作用 (程序.exe <文件与数据.txt)