Go Down

Topic: split string (Read 488 times) previous topic - next topic

spriggsy

Hi all, iv been trying to work out how to split a sting at a specified lengh.
reason is that my lcd display is a 8x2 on one line. im trying to creat a function that automagicaly sets the curser at the correct location if the string is over 8 char long. i was hoping that the String.trim() would work as the name suggests but it looks asthough its only for removing empty spaceds???

thanks in advance

Rob

johnwasser

http://arduino.cc/en/Reference/StringSubstring
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

spriggsy

how did i not see that, after a couple hours searching youve managed to fix it for me in 5 mins.

cheers

Go Up