Page 1 of 1

Find$ request

Posted: Fri Oct 16, 2015 10:02 pm
by MJU
Wouldn't it be great to have a function that can look in a string if it contains a certain other string, and when it does, return the place in the string where it was found?

Lets say: find$("This is the string that has to be checked","is",?)
Returns: 2 (the position where it was first found). (start counting from 0)

And maybe it would be great to have a second variable that returns if there are more instances of this string in the data that has to be checked?
In this case it would return "1" because the search string appears one more time in the data.

Now we have the compare$ function, but we have to search the whole data with a counter to see it it is found.

Just an idea..

Re: Find$ request

Posted: Mon Oct 19, 2015 12:15 pm
by Benj
Hello,

Yes that's a great idea.

Find$ and Count$ should be very simple additions. I'll get them on the list.