Jump to content
Sign in to follow this  
tommytx

What is the vbs instr command here at autoit?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...