D
delphilxh
Unregistered / Unconfirmed
GUEST, unregistred user!
var
tmpDoc:IHTMLDocument2;
oneframe:Ihtmlwindow2;
Begin
.......
if oneframe<>nil then
Begin
tmpDoc:=oneframe.document;//这里如果oneframe.document=nil 则报错,应该怎么避免呢?
if tmpDoc<>nil then
Result:=oneframe.document.title;
end;
end;
tmpDoc:IHTMLDocument2;
oneframe:Ihtmlwindow2;
Begin
.......
if oneframe<>nil then
Begin
tmpDoc:=oneframe.document;//这里如果oneframe.document=nil 则报错,应该怎么避免呢?
if tmpDoc<>nil then
Result:=oneframe.document.title;
end;
end;