Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
instr function in reverse ???
#1
Here is a bit to knock around.

I have a standard routine I use to find the last occurrence of a character in a string. Happens to be "\".  Using a do loop to search out a string is easy.  Looking to make it faster.  Would it be beneficial, to specify the direction of search in instr function?  Forward or reverse order.

I am think more of an enhancement to instr function.  if it's more trouble than it's worth, I will just continue with what I got.
Reply
#2
you know about _INSTRREV  right?
Reply
#3
https://qb64phoenix.com/qb64wiki/index.php/INSTRREV
Reply
#4
I do now, woohoo.
Reply




Users browsing this thread: 1 Guest(s)