Question about user mode key definitions.
|
09-04-2017, 05:57 PM
(This post was last modified: 09-04-2017 06:11 PM by Stevetuc.)
Post: #2
|
|||
|
|||
RE: Question about user mode key definitions.
(09-03-2017 10:53 PM)webmasterpdx Wrote: I call a function from a user mode key definition. When I clear the input line and put it in user mode and hit the key, the program is run. The user keys only seem to allow return as strings, so you could do: KEY K_Minus() BEGIN "MBase()" END This would place MBase(). On the input line and <enter> to run. Or maybe: KEY K_Minus() BEGIN STRING(EVAL(MBase())) END; This will directly run MBase() evaluate the return and convert the returned argument to a string and place this ( without the quotes) on the input line. Press <enter> to place this on the stack or use any postfix operator as required to do math on result Here is the MBase code I am using with this: Code:
(SETBASE(Ans(1),s-1)) takes input from the stack and converts to the base selected by the menu key given by s |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Question about user mode key definitions. - webmasterpdx - 09-03-2017, 10:53 PM
RE: Question about user mode key definitions. - Stevetuc - 09-04-2017 05:57 PM
RE: Question about user mode key definitions. - webmasterpdx - 09-05-2017, 12:28 AM
RE: Question about user mode key definitions. - Stevetuc - 09-05-2017, 04:23 AM
RE: Question about user mode key definitions. - webmasterpdx - 09-05-2017, 02:16 AM
RE: Question about user mode key definitions. - Tim Wessman - 09-05-2017, 02:56 AM
RE: Question about user mode key definitions. - webmasterpdx - 09-05-2017, 03:50 AM
RE: Question about user mode key definitions. - leprechaun - 09-05-2017, 06:05 AM
|
User(s) browsing this thread: 4 Guest(s)