I have a Browse Window -BW- activated from a toolbar for current table or view.
On the Toolbar is an exit for that Browse.
A ‘creative user’ moved the BW, activated an inactive screen, clicked the exit =Error.
I added “show window BW” at the beginning of EXIT to get rid of the invalid reference Err.
I believe a PROPER (or at least cleaner) way to handle this would be to make BW MODAL
Snippets follow -
*Startup
Define Window BW NAME 'BW' FROM 0,0 TO 34,80;
HALFHEIGHT IN SCREEN && Main Brow Wind
ACTIVATE WINDOW BW noshow
HIDE WINDOW BW
...
SHOW WINDOW BW
...
*Exit for the Browse
HIDE WINDOW 'BW'
WINDOWNAME= ALIAS()
RELEASE WINDOW &WINDOWNAME
Ready for suggestions, for a better programming tomorrow. Ed B
Edgar L. Bolton, B.S. B.B.A.