Sub String function

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Sub String function

Post 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

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Sub String function

Post 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 190 times

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Sub String function

Post by tiny »

Could you do something with the program example?
Christina

Post Reply