tommytx Posted May 21, 2010 Share Posted May 21, 2010 I frequetly use "instr" in vB6 and vbs, but autoit complains. Can anyone tell me what can be used to substitute this please. Here is what I am doing..for example. For $link In $links $cnt=0 if inStr($link.outerHTML, "class=s") then $cnt=$cnt+1 if inStr($link.outerHTML, "tabIndex=1") then $cnt=$cnt+1 if instr($link.outerHTML, "maxLength=11") then $cnt=$cnt+1 if instr($link.outerHTML, "size=3") then $cnt=$cnt+1 if $cnt=4 then $link.value=$price next Thanks in advance. Link to comment Share on other sites More sharing options...
Mobius Posted May 21, 2010 Share Posted May 21, 2010 (edited) ~ Edited March 2, 2011 by Mobius Link to comment Share on other sites More sharing options...
tommytx Posted May 22, 2010 Author Share Posted May 22, 2010 Thanks that worked perfect. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now