# exitcode > [HTML Version](exitcode_aui.htm) Exitcode returns a code indicating the event received. Typically this would be the exitcode associated with a mouse click on an object, or a particular keystroke or timer event. The actual values are generally consistent with INFLD, or XTREE, or both, to facilitate a single exitcode-handling routine that covers all three. To avoid confusion between control-identifying exitcodes (i.e. those generated via the click string associated with a control) and navigational exitcodes (such as those in the following table), you should avoid assigning control-identifying exitcodes in the range of -100 to 100. See the [cmd](cmd_aui_control.htm.md) parameter of AUI\_CONTROL, the [hlpidx](hlpidx.htm.md) parameter of INFLD, and the [XTR.KBDSTR](xtr_kbdstr.htm.md) (xtrctl) parameter of XTREE for information on how control-identifying exitcodes are defined. Note that buttons with exitcode values -1 thru -32 may be used with EVW\_EXCDINOUT. This allows buttons that emulate the standard function keys to be used with EVW\_EXCDINOUT. | **Exit Code** | **Flag(s)** | **Description** | |------|------|------| | 0 | [EVW\_NUMERIC](evw_numeric.htm.md) | number + enter | | 0 | [EVW\_RAW](evw_raw.htm.md) | any keystroke | | 1 | | Escape | | 2 | EVW\_HAREXIT | LeftArrow | | 3 | [EVW\_NOWRAP](evw_nowrap.htm.md) | Attempt to navigate up/back from end of group (instead of wrap) | | 3 | EVW\_VAREXIT | UpArrow | | 4 | | PrevPage | | 5 | [EVW\_NOWRAP](evw_nowrap.htm.md) | Attempt to navigate down/forward from end of group | | 5 | EVW\_VAREXIT | DownArrow | | 6 | | NextPage | | 7 | EVW\_TABEXIT | Tab | | 10 | | Ctrl C | | 11 | | Time out | | 12 | EVW\_HAREXIT | Right Exit | | 99 | | Invalid combination of parameter values (no matching control) | | \-35 | EVW\_TABEXIT | Shift Tab | | \-36 | EVW\_HAREXIT | Shift Left Arrow | | \-37 | EVW\_VAREXIT | Shift UpArrow | | \-38 | EVW\_HAREXIT | Shift Right Arrow | | \-39 | EVW\_VAREXIT | Shift Down Arrow | | \-45 | | Home | | \-46 | | End | | \-47 | | Del | | \-52 | EVW\_CTLARROW, EVW\_HAREXIT | Ctrl+Left Arrow | | \-53 | EVW\_CTLARROW, EVW\_VAREXIT | Ctrl+UpArrow | | \-54 | EVW\_CTLARROW, EVW\_HAREXIT | Ctrl+Right Arrow | | \-55 | EVW\_CTLARROW, EVW\_VAREXIT | Ctrl+Down Arrow | | \-56 | EVW\_CTLCLIPBD | Ctrl+C | | \-57 | EVW\_CTLCLIPBD | Ctrl+V | | \-58 | EVW\_CTLCLIPBD | Ctrl+X | | \-60 | EVW\_CTLCLIPBD | Ctrl+Z | | \-61 | EVW\_CTLARROW | Ctrl+-(numpad minus) | | \-62 | EVW\_CTLARROW | Ctrl+Plus (numeric keyboard) | | \-65 | | Shift+Tab | | \-66 | | Ctrl+Page-Down | | \-67 | | Ctrl+Page-Up | | \-68 | | Ctrl+Home | | \-75 | | File(s) dragged-and-dropped on to a control with the WS\_EX\_ACCEPTFILES attribute. See [MX\_DRAGDROP](mx_dragdrop.htm.md). | | <= -100 | [EVW\_EXCDINOUT](evw_excdinout.htm.md) | No event, incoming exitcode passed through | | \-1 thru -16 | | F1 thru F16 | | \# | | Right click on control with VK\_xrF# clickstring | | \-# | | Left click on control with VK\_xF# clickstring |