Redefining Keys: Multiple Conundrua
|
02-22-2014, 05:26 PM
(This post was last modified: 02-22-2014 08:56 PM by John R. Graham.)
Post: #1
|
|||
|
|||
Redefining Keys: Multiple Conundrua
Redefining keys with a special type of function is an interesting choice, the most surprising part of which is that the KEY functions merely feed a string of characters back to the entry line. Just as an exercise, I'm trying to redefine the LOG key to execute CSC (Cosecant). First attempt for RPN mode looked like this:
Code: KEY K_Log() Code: 1.4CSC(1) Now, second related issue. Say I wanted the key to behave correctly in both algebraic and RPN enrty modes. That's where the programmatic nature of the KEY functions could shine. The Entry variable from the home screen settings is global so I could return two different strings, depending on entry method. That would result in something like this: Code: KEY K_Log() Code: TAN() Now all this leads me to my third question. These little example programs to merely accomplish key reassignment (as yet incomplete or incorrect though they may be) have met or exceeded the size of many a useful little program I've written on other HP programmables. Shouldn't there be an easier way? - John |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Redefining Keys: Multiple Conundrua - John R. Graham - 02-22-2014 05:26 PM
RE: Redefining Keys: Multiple Conundrua - Craig Thomas - 02-22-2014, 06:08 PM
RE: Redefining Keys: Multiple Conundrua - rprosperi - 02-23-2014, 03:55 AM
RE: Redefining Keys: Multiple Conundrua - John R. Graham - 02-23-2014, 12:33 PM
RE: Redefining Keys: Multiple Conundrua - rprosperi - 02-23-2014, 02:33 PM
RE: Redefining Keys: Multiple Conundrua - rprosperi - 02-26-2014, 04:00 AM
|
User(s) browsing this thread: 1 Guest(s)