调用函数是
findquery(InfoBroker.Info,self);
代码如下,动态生成了数据集和DataSetBroker,希望能够进行动态赋值。但是。执行DataSetBroker[1].DataSet.Open;这一句是报错。说找不到id为'test'的数据集,应该怎么才能进行动态赋值呢???因为需要使用DataChart,所以需要使用到动态生成的DataSetBroker。
function TSJXZ.findquery(AOwner1: Business.System.TComponent;AOwner2: Business.System.TComponent):string;//动态生成数据集
var
i : integer;
begin