Reuben,
For me the programming pattern regarding int_flag is to set it to FALSE before any dialog except DIALOG, and test it in AFTER INPUT/CONSTRUCT/DISPLAY, then reset to FALSE after dialog execution (cleanup).
This is described here (for INPUT instruction):
https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/RecordInput.html#PROG_STEPSNote that the new DIALOG statement does not use int_flag like traditional dialogs.
You must write your own ON ACTION accept/cancel handlers.
But I agree using int_flag to detect dialog validation/cancelation has always been a "strange" principle to me.
Maybe clear new triggers would make that more "4glish"...
...
AFTER ACCEPT
...
AFTER CANCEL
...
AFTER INPUT
...
END INPUT
Execution order would be AFTER ACCEPT, AFTER INPUT or AFTER CANCEL, AFTER INPUT, following dialog validation or cancellation.
This is registered in as #11036, but setting priorities is not in my hands.
Anyone interested in this feature, please send your wish to support to give a higher weight.
Seb