View previous topic :: View next topic
|
Author |
Message |
khumaar18
New User
Joined: 08 Jul 2005 Posts: 1
|
|
|
|
Hi,
I just want to know what value will be thrown if the user presses ENTER key after giving necessary inputs in a panel.
Also, it would be fine if anyone could tell me whatz the system variable for ENTER key and how it can be used if poss.
Thanks
Kumar |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Two options:
1. Copy an ISPF MODEL for the panel display service you're using (DISPLAY, SELECT, TBDISPL) into your program. The MODEL for the service will include comments as to all the possible return-codes and what they mean.
2. Create a test program to display the panel with the selected service. Display the value of the return-code immediately after the panel is displayed. Note the different retrun-code values as you use different commands (Enter, End, Cancel). |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Also, you can use Dialog test (option 7) to see return codes.
O. |
|
Back to top |
|
|
warren
New User
Joined: 30 Aug 2006 Posts: 14 Location: Tampa, Florida
|
|
|
|
The variable is ".PFKEY". In the ")PROC" section of your panel, u can define a variable to receive it, such as "&PFKEY = .PFKEY". Then u can test the value of PFKEY. It will be 4 digits, such as "PF01", etc. The ENTER key will be represented by 4 spaces. |
|
Back to top |
|
|
|