Jump to content
Sign in to follow this  
d0n

Stringinstr

Recommended Posts

d0n

Hi, i was wonder what the best way is to approach this problem.

Basically what i have now is a string that will slowly get longer as time passes, and once it reaches a certain text limit it will begin to remove the old part of the text while replacing it with new ones. Now i want to look for a string "ABC is here" and do an action once the string is found, what would be the best way to approach this problem?

One question i have is in the Stringinstr command, how do make it always look for the last occurrence?

Thanks

Share this post


Link to post
Share on other sites
herewasplato

... always look for the last occurrence? ...

does this flag do what you want.

occurrence [optional] Which occurrence of the substring to find in the string. Use a negative occurrence to search from the right side. The default value is 1 (finds first occurrence).


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
d0n

oh yea, missed that part thx

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  

×