Posted by Barbara Brazil on April 16, 2018 at 10:39:28: Uploaded files: 1
In Reply to: Ideas for new IB Commands posted by Jeff Cinelli on April 15, 2018 at 19:01:07:
I like the idea of POSCOUNT and I really like Robert's suggestion to use a proc so I wrote one for you. It's attached here. If you haven't used procs yet, it's easy. I wrote the proc in an include file. To use it, put an "include JeffProc.inc" in the declarative section of your program and also just after the END statement of your program. Then to use the proc you'd do this:
Count = PosCount(char$,text$)
The proc will return the number of occurrences of char$ in text$
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.