>Use the following code:
>
>
>IF WEXIST('Report Designer')
> * Don't exit
>ELSE
> * Exit
>ENDIF
>
>
>Cathy
>
>
>>Is there a way to detect if the print preview window is open. I have an application toolbar with a close button (it has a door). When the print preview is open, sometimes, my users click on the Application Toolbar close button on accident and then after they close the report preview, the application shutsdown (as it is supposed to when they click on the application close button). I'm hoping to put a check in the application close button to make sure the print preview is not open, and if so, ignore the click on this button.
>>
>>Thanks
>>Kirk
What if we really want to exit application. I put
IF WEXIST('Report Designer')
release window "Report Designer"
ENDIF
in application CleanUp procedure, but it doesn't seem to work correctly.
If it's not broken, fix it until it is.
My Blog