Progress
Results User’s Guide
for UNIX
Determining the Originating Module
Use the following shared variable in your Progress procedures to determine which Results module the user was in when they selected the User option. Use this information to return the user to the originating module or another module after running your add-on (User) module.
The
qbf-module
variable holds one of the values listed in Table 10–1.
If the User option is selected from a submenu (in any module), the value of
qbf-module
is a question mark (?), just as if it was chosen from the Main Menu.Once the User module finishes processing, you can change the setting for
qbf-module
to return to another module. If you do not change theqbf-module
value, the system automatically returns to the module where the user originally called the User option.This code shows how you can use this feature in your program. This code puts the user in the customer form in the Query module if they selected the User program from the Main Menu.
NOTE: Do not change theqbf-file
shared variable contents set within the Query module when there is a query form already on the screen. Doing so can lead to unexpected results.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |