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..
Find$ request
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Find$ request
Hello,
Yes that's a great idea.
Find$ and Count$ should be very simple additions. I'll get them on the list.
Yes that's a great idea.
Find$ and Count$ should be very simple additions. I'll get them on the list.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel