Delphi中使用线程调用主窗体中Webbrowser的报错??晕啊
procedureTForm1.Catch;vari,j:integer;ovTable:OleVariant;beginovTable:=Form1.WebBrowse...
procedure TForm1.Catch;
var
i, j: integer;
ovTable: OleVariant;
begin
ovTable := Form1.WebBrowser1.OleObject.Document.all.tags('TABLE').item(8);//8
for i := 0 to (ovTable.Rows.Length - 1) do //行
begin
for j := 0 to (ovTable.Rows.item(i).Cells.Length - 1) do //列
begin
Form1.memo1.lines.add(ovTable.Rows.Item(i).Cells.Item(j).innerText);//:=ovTable.Rows.Item(i).Cells.Item(j).innerText //原文是:Innerhtml,我需要判断表格中的链接
end;
end;
end; 展开
var
i, j: integer;
ovTable: OleVariant;
begin
ovTable := Form1.WebBrowser1.OleObject.Document.all.tags('TABLE').item(8);//8
for i := 0 to (ovTable.Rows.Length - 1) do //行
begin
for j := 0 to (ovTable.Rows.item(i).Cells.Length - 1) do //列
begin
Form1.memo1.lines.add(ovTable.Rows.Item(i).Cells.Item(j).innerText);//:=ovTable.Rows.Item(i).Cells.Item(j).innerText //原文是:Innerhtml,我需要判断表格中的链接
end;
end;
end; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询