Create an account on the HP Community to personalize your profile and ask a question
10-19-2017 09:25 AM
I want to write a Global Variable name from elements I added to string , or as example from that string that I get from these elements , as example i write a
"AS" and I press space or enter ( in RPN mode of course ) and i write "TI" , when I hit the plus ( + ) key it shows me something like "ASTI" , so I want to write as example something in form of Global variable name which gives me number added to a letter i want to save , as example I want to write 3A , but 3 as number calculation ( as example when i hit 1 2 + ) and that joins with letter A , an the exit form would be '3A' , not "3A" , please reply if you have a answer
Solved! Go to Solution.
10-19-2017 12:03 PM
Hi , again , me , let me clarify , i want to know that does it exist any way to "convert" string type of data to Global variable name in HP 50g graphing calculator , that is all i want .
If you have a answer pleasew reply on my question , i will be very greatefull to You .
10-19-2017 04:00 PM
The command you want is S~N
It is in library 256, so that has to be attached once first. Here's from the AUR:
Section 1 - Introduction
Built into the hp49+/hp48gII is a set of functions not accessible to the user by default. These functions are in a library that contains low level development tools mainly designed for use in developing System RPL and assembly programs.
In order to enable this library, you must attach it with the command 256 ATTACH or by setting flag ñ86. When the library is attached after the next warmstart (or reset), it appears in the APPS menu. You may reset the calculator by pressing [ON] and [F3] at the same time."
Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
10-21-2017 01:46 AM
The method I just suggested has a disadvantage, because it only works this way when the variable A3 has not yet been defined and not yet contains a concrete value.
Suppose A3 has already been defined to be 3.5, then
"A3" OBJ→ returns 3.5 instead of 'A3' and this is probably not what you want.
In this situation we have to replace "A3"by
Note the two extra ticks.
For some reason one tick is already enough for our purpose and we can write:
So instead of "A3" OBJ→ we have to write:
"A3" "'" SWAP + OBJ→
The need of this extra code in this situation is probably the reason why the method Tim suggested may be easier.