Post Reply 
Question about "User keyboard usage". Beta2 FW
11-23-2017, 02:47 AM
Post: #7
RE: Question about "User keyboard usage". Beta2 FW
I've got one I use a lot as an example. I dont' like the hex/oct/bin/dec built-in program so I wrote my own and tied it to a user key KA_3.....Alpha 3 or the # char.

It's a menu based program called MBase(), but I activate it from the KEY function.
I don't have any code inside the KEY definition itself, but do everything inside the RETURN call as in:

RETURN STRING(EVAL(MBASE()));

I can't remember why I did it that way, but I think it was because I can allow it to return an expression string that gets evaluated by the EVAL call and then the result gets converted to a STRING, as behavior with keys can be strange when it doesn't return a string.

This seems to be a reliable way of doing it. Plus you can put whatever you want inside your function (MBase here).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Question about "User keyboard usage". Beta2 FW - webmasterpdx - 11-23-2017 02:47 AM



User(s) browsing this thread: