ON KEY Question

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 2081
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

ON KEY Question

Post by serge_girard » Fri Jul 20, 2018 12:03 pm

Does anybody how to assign /*-+ keys from (right most) numeric key pad to an ACTION.
In order to perform QUICK numeric input for calculations I need numeric key pad for input of mass numeric data and perform plus or minus procedures.

So eg:

ON KEY PLUS ACTION Add_Procdure()
ON KEY MINUS ACTION Minus_Procdure()

etc.

Thanks !

Serge

User avatar
vagblad
Posts: 105
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Re: ON KEY Question

Post by vagblad » Fri Jul 20, 2018 2:06 pm

Serge,

ON KEY ADD ACTION MSGDEBUG("+")
ON KEY SUBTRACT ACTION MSGDEBUG("-")
ON KEY MULTIPLY ACTION MSGDEBUG("*")
ON KEY DIVIDE ACTION MSGDEBUG("/")

These are all defined in the include\i_keybd.ch file if you want to check it out for more.Hope it helps!
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad

User avatar
serge_girard
Posts: 2081
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: ON KEY Question

Post by serge_girard » Fri Jul 20, 2018 2:21 pm

Thanks Vagelis !

It works fine! Forgot all about i_keybd.ch ...

Serge

Post Reply