# exitcode
> [HTML Version](exitcodeinfld.htm)
_exitcode_, if specified, receives a value to indicate how the field was exited. Note that for a specific value (except 0) to be returned, it must be activated by a corresponding _type_ code (for the positive EXITCODEs), or by the _funmap_ parameter controlling function key usage (for the negative _exitcodes_).
The number of command or function keys is limited by your terminal and function key translation module, subject to a maximum of 127 for direct function keys, and 999 for "virtual" function keys using the chr(7)+chr(250)+###. sequence.. Note that we use the terminology _Command Keys_ (Cmdx) in place of _Function Keys _(Fxx) to underscore the idea that they can be mapped on to the physical function keys any way you like.
When **|K** (Windows keyboard mode) is NOT used, the Shift+Arrow keys work like function keys (same as they do in text mode), and will generate exitcodes based on the .IFX translation table. The standard exitcodes for the shifted arrows are: -36, -37, -38 and -39. See FIXTRN.LIT for details on editing translation tables.
| **Value** | **Symbol** | **Description** |
|------|------|------|
| 0 | | Return (Enter), or Tab when **|K **code used. |
| 1 | EXC\_ESC | Escape (if neither E nor W codes used), or Ctrl+W if the **|W** code used. |
| 2 | EXC\_LEFT | Left-Arrow (^H) or Escape (when E code used), or Shift+Tab when **|2** used. |
| 3 | EXC\_UP | Up-Arrow (^K) when enabled with 3 code, , or Shift+Tab when in GUI mode (**|G**) |
| 4 | EXC\_PGUP | Page-Up (^R) when enabled with 4 code |
| 5 | EXC\_DOWN | Down-Arrow (^J) when enabled with 5 code |
| 6 | EXC\_PGDN | Page-Down (^T) when enabled with 6 code |
| 7 | EXC\_TAB | Tab (when enabled with **T** code) |
| 8 | EXC\_HELP | Help (?) when enabled with **?** code |
| 9 | EXC\_HOME | Home (Control ^) when enabled with **9** code |
| 10 | EXC\_CTRLC | Ctrl+C Trap (when enabled with **V** code). See also [Ctrl+C Behavior](ctrlcbehavior.htm.md). |
| 11 | EXC\_TIME | Field timed out |
| 12 | EXC\_RIGHT | Right-Arrow (^L) when enabled with **L** code |
| 13 | | Spacebar (when enabled with **7** code) or user selected an item in the dropdown area of combo box using Enter or Click (when enabled with **||m** code). |
| 14 | | Rubout or Delete (when enable with **8** code) |
| 15 | | Ctrl+E (when enabled with the **k** code) |
| 16 | | Ctrl+B (when enabled with the **|B** code) |
| 17 | | Ctrl+O (when enabled with the **|O** code) |
| 18 | | Ctrl+Z (when enabled with the **|Z** code) |
| 19 | | Ctrl+A (when enabled with the **|a** code) |
| 20 | | Ctrl+W (when enabled with the **|w** code) |
| 21 | | Ctrl+U (when enabled with the **|U** code) |
| 22 | | Ctrl+N (when enabled with the **|N** code) |
| 25 | | Ctrl+P (when enabled with the **|Q** code) |
| 26 | | Ctrl+S (when enabled with the **|S** code) |
| 27 | | Ctrl+X (when enabled with the **|XX** three-character code) |
| 29 | | User clicked on dropdown button in [Self Service Combo Box](selfservicecombobox.htm.md) |
| 30 | | ([Auto-Complete](auto-complete.htm.md)) User has modified the field and then paused or hit Down-Arrow; INFLD requests an updated setdef parameter containing the drop-down list configuration and contents. |
| 31 | | ([Auto-Complete](auto-complete.htm.md)) User has hit Ctrl+Down-Arrow from bottom item of auto-complete list request additional items. Application may replace list with new data, or just add to the existing list, at its option. |
| \-1 | | (Cmd1) (When enabled via translation table and/or (_funmap_)) |
| \-2 | | (Cmd2) etc. |
| \-35 | | Shift+Tab; note 1 |
| \-65 | | Ctrl+Page-Down; note1 |
| \-66 | | Ctrl+Page-Up; note1 |
| \-67 | | Ctrl+Home; note 1 |
| \-68 | | Ctrl+End; note 1 |
| \-69 | | Click on close-tab "x" button in TabX control |
| \-75 | | File(s) dragged-and-dropped on to a control with the WS\_EX\_ACCEPTFILES attribute. See [MX\_DRAGDROP](mx_dragdrop.htm.md). |
| \-### | | (Virtual function key) Triggered by a function key or a mouse-click on a field which was programmed to send the sequence chr(7)+chr(250)+"###." where ### is any number. See _hlpidx_. |
**Comments**
The upper bit of the _funmap_ parameter must be set in order to enable the specified _exitcode. _This can be accomplished by setting _funmap_ = -1, enabling all function key exits as well, or by adding 2^31 to any other _funmap_ value.
**See Also**
• [Exit Key Enabling Codes](exitkeyenablingcodes.htm.md)