如下面这个,当前tableRow的值是2,我想通过修改这个值来对不同值取name.
sRet = UiElement.GetAttribute({"html":[{"tag":"A","parentid":"bb","tableRow":"2"}],"wnd":[{"app":"iexplore","cls":"IEFrame","title":"*"},{"cls":"Internet Explorer_Server"}]},"name",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
尝试过下面这种方式,报错,请教各位
for i = 1 to 3
sRet = UiElement.GetAttribute('{"html":[{"tag":"A","parentid":"bb","tableRow":"' & i &'"}],"wnd":[{"app":"iexplore","cls":"IEFrame","title":"*"},{"cls":"Internet Explorer_Server"}]},"name",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200}')
next