MAINDEFINE p1,p2,p3 STRING #DEFER INTERRUPT PROMPT "Enter parameter 1? " FOR p1 PROMPT "Enter parameter 2? " FOR p2 PROMPT "Enter parameter 3? " FOR p3 -- CALL generate_report(p1,p2,p3) END MAIN
MAIN CALL ui.Interface.loadToolbar(<toolbar with interrupt button>) OPEN WINDOW w ... CALL ui.Interface.Refresh() SLEEP 10 MENU "" -- or PROMPT ON ACTION continue EXIT MENU END MENU
...OPEN WINDOW ... -- open a window/form with progress bar and 'interrupt' buttonLET INT_FLAG = FALSESTART REPORT ...FOREACH c_orders INTO ... IF INT_FLAG THEN EXIT FOREACH END IF OUTPUT TO REPORT ...END FOREACH...