12-28-2013, 08:37 AM
Post: #1
 veeblefester Junior Member Posts: 43 Joined: Dec 2013
In writing code for the HP Prime, how does one do indirect addressing?
An example, I have a variable named TEST1. TEST1 contains the string “BS10” that my code has constructed and stored there. “BS10” is a pointer to global variable BS10. Note that userin contains data acquired during an INPUT(); line. I need a line(s) something like one of the following because none of these work:

userin▶TEST1;//need the contents of userin stored in the variable BS10
userin▶’TEST1’;//remember that TEST1 contains the pointer BS10
userin▶(TEST1);
userin▶(‘TEST1’);

Many thanks in advance for any help.

Happy coding and may you see ' i No errors in the program ' with every compilation.
12-29-2013, 12:37 AM
Post: #2
 BruceH Senior Member Posts: 313 Joined: Dec 2013
Code:
 "2+3"‣AA                   "2+3" EXPR(AA)                    5
12-29-2013, 02:19 AM (This post was last modified: 12-29-2013 02:20 AM by Han.)
Post: #3
 Han Senior Member Posts: 1,842 Joined: Dec 2013
Would the following be useful for your needs?

Code:
 example:="myvar:=123;"; expr(example); // or alternately: cas(example);

Graph 3D | QPI | SolveSys
12-31-2013, 12:49 PM
Post: #4
 veeblefester Junior Member Posts: 43 Joined: Dec 2013