一个com组件返回一个_recordset型数据(一个数据集),我定义了一个对象,怎样让返回的值赋给这个对象,还有 _recorderset.open又很多参数,能说一下么
解决方案 »
- fastreport 设计 在MasterData中加入memo 为什么不显示memo所绑定的字段
- 请问在listview中统计问题??
- 请问如何实现用一个quickRep用多页面预览多个dataset的数据
- 自定义控件的初始化问题
- 哪里有EQGrid421 for d7,最好包含dxDBtreelist的可供下载?
- 怎么让TListView自动排列里面的ListItem?
- 轻松问题
- 谁能提供一个基于互联网的文件传输源码啊?
- 极其简单的问题 :) 请进>>
- 如何用idhttp实行自动登录
- 为何在InsideVCL中李维那个CallStack能列出一大串函数的调用过程而我的却始终只有那么可怜巴巴的几个?
- 小问题,高手帮忙进来看一下!
别的ADO组件也是
An example:
ADOQuery2.Close;
ADOQuery2.Recordset := ComObject.MethodName;
// ComObject.MethodName returns a _recordset, and then ADOQuery2 will be Opened,
// please look the code in ADODB unit:
{
procedure TCustomADODataSet.SetRecordset(const Value: _Recordset);
begin
Close;
if Assigned(Value) then
try
if (Value.State and adStateOpen) = 0 then
DatabaseError(SRecordsetNotOpen, Self);
FRecordsetObject := Value;
Open; // Be Opene;
except
Close;
raise;
end;
end;
}