× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Brian wrote: 

> We are in the middle of converting a subroutine to modules 
> for ease of maintenance.  Right now, we have one of our 
> programs call a module that displays it's data in a window 
> (using an EXFMT command).  However, it blanks out the main 
> window.  Even when the user window disappears the program 
> will not display the data in the main window anymore.
> 
 
Hi Brian,

A codesnippet of the DDS what I usually use is:

 * Subfile control
A          R ALG012AC                  SFLCTL(ALG012AS)        
A                                      WINDOW(ALG012W)         
A                                      OVERLAY                 
 
 * Window definition
A          R ALG012W                                              
A                                      KEEP                       
A                                      WINDOW(4 20 15 55)         
A                                      WDWBORDER((*COLOR BLU) (*DSPATR
RI)-
A                                       (*CHAR '        '))       

 * Remove window from screen
A          R ALG012RMV                 CLRL(*NO) OVERLAY FRCDTA   

 * No i/o to this record, it's only here to prevent 
 * screen clearing at init time
A          R ALG012ASS                 ASSUME                     
A                                  2  2' '                        

Compile your display file with RSTDSP(*NO) DFRWRT(*YES).
I do a write to the remove record when returning to the caller.  

HTH, Arco Simonse

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.