Find in string

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
markavo
Posts: 33
Joined: Wed Apr 11, 2018 11:10 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Find in string

Post by markavo »

Wonder if you can help please.

I have been playing with the FAT1 component and a SD card opening / writing to a file then reading the file or a position of a file to display the string on a LCD this is fine no problem as long as i know the start and end of the string.

What i'm struggling with is finding a character in that string (in this example a space but could be ; for example) and returning the position of this space or character and storing in a variable where it was found so i can then find the start and end of strings, maybe i would need to return the length of that string.

So i see it as two variables Start , End

Start = Find space
End = Find next space
StringVar = Get_Characters_From (Start,End)

Am i missing something simple please.

Post Reply