Page 1 of 1

Sub String function

Posted: Sat Jan 06, 2018 8:15 am
by MarkW
Hello

Is there a string function in FC that allows you to search for a
string within a string?

Or has anyone done an example of how to do this? I have some ideas
but would prefer some example that has already been done

Thanks

Mark

Re: Sub String function

Posted: Sun Jan 07, 2018 12:39 pm
by tiny
I hope you can read this file because I created it with FC 7.
This example looks for xFind in xString, Mode is Case Sensitive (0) or Case Insensitive (1).
The exact position is output, even if the search string is in the first place (result 0). If nothing is found, the search result is -1.
I hope it meets your wishes.

Christina
Stringsearch.fcfx
(12.01 KiB) Downloaded 191 times

Re: Sub String function

Posted: Sat Jan 13, 2018 9:27 pm
by tiny
Could you do something with the program example?
Christina