Store ascii text like a variable
I have an application where it would be very handy to be able to store an ascii message (13 characters) under a variable name and recall that later in the program. Is there a good way of doing this?
I looked at declaring a 13 Byte array, but that eats up all my available variable space really fast.
I looked at declaring a 13 Byte array, but that eats up all my available variable space really fast.
Comments
As·Mike suggested, if you do not have the BASIC Stamp Syntax & Reference Manual, you can download a copy or purchase a hard copy from our web site. This will help in reviewing the commands.
·
· BASIC Stamp Syntax & Reference Manual [noparse][[/noparse] hard copy ]:
· http://www.parallax.com/Store/Books/BASICStamp/tabid/168/CategoryID/42/List/0/Level/a/ProductID/143/Default.aspx?SortField=ProductName%2cProductName
·
· BASIC Stamp Syntax & Reference Manual [noparse][[/noparse] soft copy ]:
· http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
Another option is a BASIC Stamp 2p or higher model. These models have SPRAM that can be written to directly from a SERIN statement. But you can also store arbitrary string data here up to 126 characters long. This will not use up any variable space, but pipelining the data to another device will mean channeling it one byte at a time using a single byte variable. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering