Mister SirCode
Mister SirCode

Reputation: 23

How can I output multiple lines of multiple types of values with TI Basic

So this is an expansion or continuation of my previous question: How can I pipe a value out of a TI-84 Program to the home screen as a usable number, rather then a temporary display

I know how to output strings and values to the home screen now

However, one thing I've noticed is that I can seemingly only output 1 value. Meaning if I want to have different kinds of data (A description and a value) I have to convert everything to strings and draw it on one line

This is a problem because for one, you can't instantly pull that value out of the string from the home screen. If you try to output it again by scrolling up and clicking enter on the value, it will simply return to the bottom and will copy nothing, as strings aren't valid apparently.

I could solve this if I could just output a string AND a number separately, like so:

Value Description:
                       300

however I'm not sure this is possible

I'd also like to be able to output extra strings, so I can show the input and output values, but if I can only output one line, then it makes it quite difficult.

Upvotes: 0

Views: 197

Answers (1)

SP4CEBAR
SP4CEBAR

Reputation: 21

Yes, you can print multiple lines:

  • Using the Disp command you can add a new string or value to your home screen. For example:
Disp "HELLO","WORLD","100"

will print

HELLO
WORLD
100
  • Using the Output command you can position a string or a value at a specified position on your home screen.

However, one thing I've noticed is that I can seemingly only output 1 value. Meaning if I want to have different kinds of data (A description and a value) I have to convert everything to strings and draw it on one line

If you meant one value per line then your question is answered here.

This is a problem because for one, you can't instantly pull that value out of the string from the home screen. If you try to output it again by scrolling up and clicking enter on the value, it will simply return to the bottom and will copy nothing, as strings aren't valid apparently.

Once the program has ended you cannot copy and reuse any of the values it printed on your home screen, but you can still access the variables that your program used. You can store values in variables using the store command. You can also use the ANS variable to access the result of the latest calculation you or your program performed.

Upvotes: 0

Related Questions