Jump to content

Stringinstr


 Share

Recommended Posts

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

Link to comment
Share on other sites

... 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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...