是否有迭代IHTMLElementCollection的方法?遍历IHTMLElementCollection
如
var
e : IHTMLLinkElement;
elementCollection:IHTMLElementCollection;
begin
for e in elementCollection do
showmessage(e.caption);
end;
我知道有一个名为_NewEnum属性,但它不是在德尔福的支持,就像我能理解。
更新: apperently链接IHTMLElement而不是IHTMLLinkElement
我把它写成“IHTMLElementCollection的愤怒”,并认为“它不能那么糟!” :-) –