Progress
Language Tutorial
for Windows
Using Dialog Boxes with WAIT–FOR Statements
In "Creating Reports," the tutorial used a technique that violated the advice from the last section. The programming examples in that chapter used a dialog box to display static report output and blocked the interface with a nested WAIT-FOR statement.
In this case, the nested WAIT-FOR works, because:
- The dialog box has no updatable widgets and therefore has no need for an UPDATE statement.
- The dialog box disables the main interface, avoiding conflict with the main WAIT-FOR.
- The code took care of explicitly dismissing the dialog box. Without the HIDE statement immediately following the WAIT-FOR, the code would yield an error message.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |