QB64 Phoenix Edition
Reverse INSTR ? - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10)
+---- Thread: Reverse INSTR ? (/showthread.php?tid=1651)



Reverse INSTR ? - TerryRitchie - 05-01-2023

I could have swore I saw a post a while back stating that a reverse INSTR command was either introduced or someone created one but I am having no luck searching for it.

InStrRev (from VB) was quite handy and I find myself needing a QB64 equivalent.

Am I hallucinating? Is my age starting to show? Does anyone else remember this post?

-------- THERE IT IS ----------

UPDATE: I was just about to post this but decided one last time to search the Wiki using the VB name INSTRREV and there it was! The INSTR page in the Wiki makes no mention of INSTRREV. searching for INSTR in the Wiki takes you to the INSTR page with no way of seeing that INSTRREV exists.


RE: Reverse INSTR ? - mnrvovrfc - 05-01-2023

https://qb64phoenix.com/qb64wiki/index.php/INSTRREV


RE: Reverse INSTR ? - a740g - 05-01-2023

Thanks Terry. Added _INSTRREV to "See also" in the INSTR wiki.


RE: Reverse INSTR ? - doppler - 05-01-2023

Very useful to find the last "\" of a file path.  Or the last "/" of a url pointer.


RE: Reverse INSTR ? - TerryRitchie - 05-01-2023

(05-01-2023, 07:08 AM)a740g Wrote: Thanks Terry. Added _INSTRREV to "See also" in the INSTR wiki.

Excellent, thank you for getting to this so quickly.