Indirect addressing in HP PPL. Is it possible?
|
01-08-2014, 08:40 PM
Post: #2
|
|||
|
|||
RE: Indirect addressing in HP PPL. Is it possible?
(01-08-2014 08:18 PM)veeblefester Wrote: How does one do 'indirect' addressing in HP PPL? The following code takes the input n and saves it to myvar using the pointer varptr. Code:
Usage: test(9), then when prompted, type G for the varname (no need for double quotes since varptr was initialized to be a string), then enter another number -- say 42. Result: type mvar at the command line and you will see the value 9. Type G at the command line and the result is 42. As you may have already figured out, this only works with variables that already exist. You will get an error if varptr contains a variable name that has not been created. As myvar was created by the program, and G is a global built-in variable, no problems arise. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Indirect addressing in HP PPL. Is it possible? - veeblefester - 01-08-2014, 08:18 PM
RE: Indirect addressing in HP PPL. Is it possible? - Han - 01-08-2014 08:40 PM
RE: Indirect addressing in HP PPL. Is it possible? - veeblefester - 01-09-2014, 09:05 PM
RE: Indirect addressing in HP PPL. Is it possible? - Han - 01-09-2014, 09:32 PM
RE: Indirect addressing in HP PPL. Is it possible? - veeblefester - 01-10-2014, 07:02 AM
RE: Indirect addressing in HP PPL. Is it possible? - Han - 01-10-2014, 03:36 PM
|
User(s) browsing this thread: 1 Guest(s)