Find$ request

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Find$ request

Post 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..

User avatar
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

Post by Benj »

Hello,

Yes that's a great idea.

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

Post Reply