D
dana
Unregistered / Unconfirmed
GUEST, unregistred user!
我要在webbrowse 中让程序自动填写网页信息,
下面这段有的网站能行有的却不行不知是为何?
经常出现“'method'.value not supported by mautomation object”
不支持的这种提示该怎么办?
procedure TForm1.Button3Click(Sender: TObject);
var o : Olevariant;
begin
o := web1.oleobject.document.all.item('UserName',0);
o.value := '54321';
o := web1.oleobject.document.all.item('Password',0);
o.value := '3333';
web1.oleobject.document.Forms.Item(0, 0).submit;
end;
下面这段有的网站能行有的却不行不知是为何?
经常出现“'method'.value not supported by mautomation object”
不支持的这种提示该怎么办?
procedure TForm1.Button3Click(Sender: TObject);
var o : Olevariant;
begin
o := web1.oleobject.document.all.item('UserName',0);
o.value := '54321';
o := web1.oleobject.document.all.item('Password',0);
o.value := '3333';
web1.oleobject.document.Forms.Item(0, 0).submit;
end;