Go Down

Topic: Build a String (Read 682 times) previous topic - next topic


Hey Guys,

Do any of you guys know how to build a String? What i am trying to do is to read a number from the Serial port, and add it to String constants.
For example, I need to have "<T1*>" as a resulting string. The number can change however. So if I send the number 2 to the Serial port, the resulting String should be "<T2*>".

What is the best way to do this?



The below has some good info on manipulating strings. StringReplace might be an easy approach.

Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

Go Up