Z
zym874
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.C2Click(Sender: TObject);
Var
ewblevariant;
ewslevariant;
s:string;
begin
ewb:=OleContainer1.OleObject;
ews:=ewb.Worksheets.item[1];
ews.Cells.Item[1,1]:='demo'; //ok
问:单元格ews.Cells.Item[1,1]的名称?
s:='demo1';
ews.range(s,s)='demo'; //错误
怎样判断一个名字在ews中是否命名?
end;
Var
ewblevariant;
ewslevariant;
s:string;
begin
ewb:=OleContainer1.OleObject;
ews:=ewb.Worksheets.item[1];
ews.Cells.Item[1,1]:='demo'; //ok
问:单元格ews.Cells.Item[1,1]的名称?
s:='demo1';
ews.range(s,s)='demo'; //错误
怎样判断一个名字在ews中是否命名?
end;