c++ builder中有这样的语句 int count_ID; count_ID=ADOTable3->FieldByName("count_ID")->AsInteger;

来源:百度知道 编辑:UC知道 时间:2024/09/23 07:04:25
FieldByName("count_ID")->AsInteger;
是什么意思?FieldByName格式是什么?

你好:
fieldbyname在它基于的名称上来查找到一个字段。

一个对应字段fieldbyname 通过字段名称查找相关字段

一般取字段值用fieldbyname 如 str1:=query.fieldbyname('字段名').asstring 例子为字符型

fielbyname用来从数据集控件中根据字段名获得相应的值,

对照以上解释你知道ADOTable3->FieldByName("count_ID")->AsInteger的意思了

祝你好运!