Go Down

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

iRagDoll

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?

Thanks!

zoomkat

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

http://arduino.cc/en/Reference/StringObject
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

Go Up