Simple programming help with the Prime
|
06-10-2014, 04:39 PM
(This post was last modified: 06-10-2014 09:46 PM by Didier Lachieze.)
Post: #20
|
|||
|
|||
RE: Simple programming help with the Prime
(06-10-2014 02:10 PM)Angus Wrote: KEY KS_Minus() What happens is that tohex(1) returns #1h as 1 is not considered as an argument count but as a parameter for tohex(). Normally, according to the HP Prime User Guide when you define a USER Key the RETURN statement should be followed by a string containing the command to be put on the command line. (Btw it seems there is no way to execute automatically the string once it’s on the command line). What’s interesting in your example is that retval is not a string but the number '1' and RETURN retlval; is activating the Symb function as if you had pressed the Symb key. I’ve done a few tests and each key has a corresponding number which reproduces the key press including the execution of the function:
I don't know if that can be useful in any way ... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)