Sign in to follow this  
Followers 0
talkfoodtalk

StringInStr parentheses

2 posts in this topic

Hi,

I am trying find the position of:

spview-directory-number-input class=" x-form-field x-form-text" tabIndex=0 value=

within $sText. It is in there however StringInStr is returning 0. The string im looking for already has quotation marks in there so im assuming im doing somthing wrong with parentheses....can someone correct me please?

Local $iPosition = StringInStr($sText, 'spview-directory-number-input class=" x-form-field x-form-text" tabIndex=0 value=' , 0, 1)
MsgBox($MB_SYSTEMMODAL, "", "The search string  first appears at position: " & $iPosition)

Share this post


Link to post
Share on other sites



Please ignore - my error. The code above is working fine!!

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  
Followers 0