F
FangQ
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这段经典语句,哪位知道如何在C++Builder中实现,多谢!!!
procedure TForm1.Button1Click(Sender: TObject);
var
doc:IHTMLDocument2;
all:IHTMLElementCollection;
item,itemclevariant;
I:Integer;
begin
try
doc:=WB_main.Document as IHTMLDocument2;
all:=doc.all;
item:=all.tags('INPUT');
itemc:=item.item(5);
itemc.innerText:=Edit1.text;
itemc:=item.item(6);
itemc.innerText:=Edit2.text;
itemc:=item.item(7);
itemc.click;
except
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
doc:IHTMLDocument2;
all:IHTMLElementCollection;
item,itemclevariant;
I:Integer;
begin
try
doc:=WB_main.Document as IHTMLDocument2;
all:=doc.all;
item:=all.tags('INPUT');
itemc:=item.item(5);
itemc.innerText:=Edit1.text;
itemc:=item.item(6);
itemc.innerText:=Edit2.text;
itemc:=item.item(7);
itemc.click;
except
end;
end;