小要求实现大计划,我只想寻求这方面的知识
如果想在activex中返回一个数据集,是用olevariant类型吗?我在activex里新
建了一个method,function gettable
levariant,遍历表把数据写进一个二维
可变数组里,在javascript中用:
ds=activex1.gettable()
alert ds(0,0)//这句出错
我在activex中增加一个属性cell,是一个二维可变数组,想在初始化的时候把
table读到cell里,同样cell的属性也是olevariant,但是很奇怪,我对照了
其他属性如caption等
function TActiveFormXa.Get_Cell: OleVariant;
begin
Result := Cell;//出错,说Cell没定义,天哪,caption也是一样这么写的
end;
procedure TActiveFormXa.Set_Cellt(Value: OleVariant);
begin
Cell:=Value;//同样出错
end;
why??
请各位大虾帮帮忙!