Assigning one key action to another key press

confidentbala

New Member
Hi all,
Is there any way to assign a key press function to be happened for the another key press. (i.e.) if ENTER key is pressed then i want to perform the action which will happen when F1 key is pressed.
i used trigger and assigned if enter is pressed then assigning LASTKEY = f1 , but it does not work. any idea.

Thanks in advance Balasubramanian
 
For the trigger used, ie behind the trigger for the enter key, simply point to the code you actually require. Use; APPLY “whatever” / “F1” TO objectName
Hope you get the idea
 
Thanks lord icon,
I tried your suggesstion it give me an error
** Unable to understand after -- "RETURN F1". (247)
** Could not understand line 10. (198)

but when it is used without to objectname in return, it runs but can't know it is assigning the "f1" function to "enter" key.

Bala
 
Code:
def var a as char no-undo.
def var b as char no-undo.
form a b with frame a.
 
on return of a in frame a apply "go" to a in frame a.
update a b with frame a.

Here, "go" is the equivalent Key Function of F1.
Code:
readkey. display keyfunc (lastkey).
will tell you the Key Function of any key pressed.

You can use other key functions to force other things to happen.
 
Back
Top