Post Reply 
Question about "User keyboard usage". Beta2 FW
11-21-2017, 10:21 PM
Post: #1
Question about "User keyboard usage". Beta2 FW
I'am using the latest Beta V2 FW but I think it is not specific to this version.

I can't find build in help about the KEY command.

In the official pdf doc I read the short text and i'd like to know if we can place more stuff inside the KEY definition and not just a
Code:
RETURN "a_function_name"
...

And I probably use this function very badly

Here are some tests...

If you try these code you will see that the KEY_minus don't work at all... on the other hand the KEY K_Ln() executes the inside stuff with success but it return a strange "_" char in the command line when I quit the terminal...

Code:
 
#pragma mode( separator(.,;) integer(h32) )

EXPORT aaa()
BEGIN
 LOCAL i;
 PRINT();
 FOR i FROM 1 TO 100 DO
   PRINT(i);
 END;
END;

KEY K_Log()
BEGIN
RETURN "aaa";
END;

KEY K_Ln()
BEGIN
LOCAL i;
 PRINT();
 FOR i FROM 1 TO 100 DO
   PRINT(i);
 END;
END;

EXPORT bbb()
BEGIN
LOCAL i,k:=0;
  FOR i FROM 1 TO 100 DO
    k:=k+i;
  END;
END;

KEY K_Plus()
BEGIN
RETURN "bbb";
END;

KEY K_Minus()
BEGIN
LOCAL i,k:=0;
  FOR i FROM 1 TO 100 DO
    k:=k+i;
  END;
END;

1) Can we do more inside a KEY redefinition than just a
Code:
RETURN "blabla_function"
?
2) Where can we find, in the calculator menu, all the redefinitions realized in various programs?
Thank you for your help.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Question about "User keyboard usage". Beta2 FW - dg1969 - 11-21-2017 10:21 PM



User(s) browsing this thread: 1 Guest(s)