How to use a string variable?
Posted: Fri Nov 27, 2009 7:04 pm
Hello All,
This might be a stupid question but how do I use the string variables?
Let me give you an example.
Let's say I have a string variable MSG, when you create this variable it is an array of size 20 (MSG[20]) max.
Now if I want to my string to be for ex. "Flowcode 4 rocks" (and later use that as output for an LCD), how do I make MSG="Flowcode 4 rocks"?
What happens if my text is longer than 20 characters?
Also, is there a way to add comments to variables when creating them in the Variables manager (e.g. LCD_OUT //This variable will be displayed on LCD)?
I'm not sure I explained this very well but if it doesn't make sense let me know and I'll try again.
Thanks
D.
This might be a stupid question but how do I use the string variables?
Let me give you an example.
Let's say I have a string variable MSG, when you create this variable it is an array of size 20 (MSG[20]) max.
Now if I want to my string to be for ex. "Flowcode 4 rocks" (and later use that as output for an LCD), how do I make MSG="Flowcode 4 rocks"?
What happens if my text is longer than 20 characters?
Also, is there a way to add comments to variables when creating them in the Variables manager (e.g. LCD_OUT //This variable will be displayed on LCD)?
I'm not sure I explained this very well but if it doesn't make sense let me know and I'll try again.
Thanks
D.