instr function in reverse ??? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: instr function in reverse ??? (/showthread.php?tid=1461) |
instr function in reverse ??? - doppler - 02-10-2023 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. RE: instr function in reverse ??? - Jack - 02-10-2023 you know about _INSTRREV right? RE: instr function in reverse ??? - SMcNeill - 02-10-2023 https://qb64phoenix.com/qb64wiki/index.php/INSTRREV RE: instr function in reverse ??? - doppler - 02-10-2023 I do now, woohoo. |