Today's my first day here at the forums, and I'm glad to join within the ranks of the TI-BASIC community. Username's inspired by my favorite movie of all-time, free cookie to whoever can spot the reference first. xD
Anyways, onto business. I'm looking for help on creating a text-scrolling algorithm from the bottom upward, similar to a chat-room fashion. The most recent posts or messages would begin at the bottom and would be pushed upward as more recent messages come in.
I've been working on this for a few days now, and after hundreds of ERR:DIM and ERR:DOMAIN messages (AKA 15 or so :D), it's about time to find someone who actually knows what they're doing. :P
My approach involved storing the entire history of the "chat" in a string, separating each line with a symbol to signify a line break. I used theta (θ). Then, using inString, I would search for theta within the history string and display the segments via sub( on each line, using For(A and Text(X-6A).
An example would be "CCCθBBBθAAA" and converting that to…
AAA BBB CCC
… with the most recent line, "CCC", at the bottom. So for instance, if the next line would be "DDD", it should display as…
AAA BBB CCC DDD
… and push the other lines upward.
Works well in theory, but terribly in practice. I tried implementing lists to mark the start/stop locations of each line, but I'm pretty sure that's unnecessary and can be done without using them. The Text( often ran into ERR:DOMAIN, and although it managed to work ONCE by a pure miracle, it still seems pretty unsalvageable.
I can post my pseudo-code, or what TI-BASIC code I have now if needed. A point toward the right direction, help fixing my poorly-optimized trash of code, or even a full source code would all be greatly appreciated.