PDA

View Full Version : Loading Arrays



CocaColaKid
- 8th August 2005, 19:32
Is there an easy way to load an array?

For example if I want to load something like "TESTING" into the array test do I have to enter it this way or is there an easier way like test = "TESTING"?

test[0] = "T"
test[1] = "E"
test[2] = "S"
test[3] = "T"
test[4] = "I"
test[5] = "N"
test[6] = "G"

Darrel Taylor
- 8th August 2005, 21:40
This doesn't really answer your question, but it looks like you're just loading the array so that you can send it out with a STR modifier in SEROUT2 or LCDOUT.

Another approach is to load the String in program memory, then just send it directly, instead of passing it through an array.

Bruce, Michael and I had a nice little conversation about doing that recently.

http://www.picbasic.co.uk/forum/showthread.php?t=1999 <br><br>