# EVW\_EXCDINOUT
> [HTML Version](evw_excdinout.htm)
This flag is similar to EVW\_EXCDFOCUS but just causes any incoming EXITCODE value of -100 or less to be "passed through" (i.e. returned directly) to the application. This is useful (in conjunction with EVW\_EXCDFOCUS) for responding to button clicks that occur while INFLD has the focus. For example, you might have a structure like this:
do
xcall AUI,AUI\_EVENTWAIT,CTLID,PARENTID,EXITCODE,OPFLAGS
if
exit
else
call
loop
With just EVW\_EXCDFOCUS alone, if the user clicks on a button while INFLD has the focus (in the "field handler" above), the subsequent EVENTWAIT would merely put the focus on the button without triggering it. (The first click would trigger an exit from the current INFLD, but it would take a second click on the button to invoke the "field handler" for the button, using the logic above.) With EVW\_EXCDINOUT added to the OPFLAGS, the button click would cause the "field handler" to exit, as before, but now the EVENTWAIT would also exit, so that the new "field handler" for the button could be called. This is not an issue when clicking on an INFLD field, because the combination of EVW\_INFLD+EVW\_EXCDFOCUS would cause any attempt to put the focus on an INFLD field to just exit from the EVENTWAIT so that INFLD could be called.
Note that one situation where you might not want EVW\_EXCDINOUT is if you want to explicitly put the focus on a button by specifying its EXITCODE, without forcing the button to get clicked.