Pages: [1]   Go Down
Author Topic: split string  (Read 451 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Reference/StringSubstring
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

cheers
Logged

Pages: [1]   Go Up
Jump to: