if not VarIsNull(ovTable) then begin
for i:=1 to ovTable.rows.length-1 do
begin
for j:=0 to ovTable.rows.item(i).cells.length-1 do
begin
ovTable.rows.item(i).cells.item(j).innertext
end
end
end
用 delphi 提取 html 文件中的内容,可以采用以下方法:一、采用字符串处理函数、正则表达式进行提取。
二、使用 IHTMLDocument 接口提取。
tolinux2001,html文件也是文件,不管在什么语言中调用都是按照文本文件的方式来处理的。所以,在delphi中肯定会用到assignfile(),reset()的,如果是自己处理该html文件的话。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)