saravanakumar
Member
Hi everybody,
I have a sample code below which enables 3 boxes for vTest1, vTest2, vTest3 respectively. I have a trigger below for On 'ENTER' anywhere,
i need to display the variable names when i press enter correspondingly.
For Example,
If i am entering a value in vTest1 and press ENTER, it should pop-up a message which prints vTest1,
If i am entering a value in vTest2 and press ENTER, it should pop-up a message which prints vTest2, likewise...
But it should be in a single trigger (i.e., ON 'ENTER' ANYWHERE) fetching the variable names dynamically to which it points currently.
*******************************************************
DEFINE VARIABLE vTest1 AS INTEGER NO-UNDO.
DEFINE VARIABLE vTest2 AS INTEGER NO-UNDO.
DEFINE VARIABLE vTest3 AS INTEGER NO-UNDO.
DEFINE FRAME f
vTest1 AT COLUMN 1 ROW 1
vTest2 AT COLUMN 1 ROW 2
vTest3 AT COLUMN 1 ROW 3
WITH SIDE-LABELS.
SET vTest1 vTest2 vTest3 WITH frame f.
ON 'ENTER':U ANYWHERE
DO:
/* I need the code here!! */
END.
*******************************************************
Can anyone help me out???
I have a sample code below which enables 3 boxes for vTest1, vTest2, vTest3 respectively. I have a trigger below for On 'ENTER' anywhere,
i need to display the variable names when i press enter correspondingly.
For Example,
If i am entering a value in vTest1 and press ENTER, it should pop-up a message which prints vTest1,
If i am entering a value in vTest2 and press ENTER, it should pop-up a message which prints vTest2, likewise...
But it should be in a single trigger (i.e., ON 'ENTER' ANYWHERE) fetching the variable names dynamically to which it points currently.
*******************************************************
DEFINE VARIABLE vTest1 AS INTEGER NO-UNDO.
DEFINE VARIABLE vTest2 AS INTEGER NO-UNDO.
DEFINE VARIABLE vTest3 AS INTEGER NO-UNDO.
DEFINE FRAME f
vTest1 AT COLUMN 1 ROW 1
vTest2 AT COLUMN 1 ROW 2
vTest3 AT COLUMN 1 ROW 3
WITH SIDE-LABELS.
SET vTest1 vTest2 vTest3 WITH frame f.
ON 'ENTER':U ANYWHERE
DO:
/* I need the code here!! */
END.
*******************************************************
Can anyone help me out???
