Microsoft KB Archive/179605

= You cannot quit Visual FoxPro after you preview report in a DESKTOP Window =

Article ID: 179605

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q179605



SYMPTOMS
When you send a report preview to a window defined with the DESKTOP clause that is larger than the FoxPro desktop, the preview data does not appear and you are unable to quit Visual FoxPro.



RESOLUTION
If the contents of a preview must be sent to a defined window, do not use the DESKTOP clause when creating the window.



STATUS


MORE INFORMATION
WARNING: After running this code you will be unable to close Visual FoxPro through normal means. Use Task Manager in Windows NT or the Close Program dialog box in Windows 95 to close Visual FoxPro. Before running this code, close all running applications and save your data. To close all open applications, press the CTRL+ALT+Delete keys to open the Windows Task Manager or Close Program dialog box, and then close all the other applications you have running. Note that following the steps below may produce lost allocation units, lost clusters, or cross-linked files.

Steps to Reproduce Behavior
 Create a quick report named Ztest based on any table.  Create a program called Zprevtest that contains the following code: MODIFY WINDOW SCREEN FROM 0,0 TO 35, 110 FONT "Arial", 14 DEFINE WINDOW Ztest IN DESKTOP FROM 0,0 TO 35, 138 FONT "Arial", ; 14 TITLE "On Top" ACTIVATE WINDOW Ztest REPORT FORM Ztest.frx PREVIEW WINDOW Ztest RELEASE WINDOW Ztest  Run the program. The window on top now takes up the entire Visual FoxPro desktop and the report preview never appears. Note that there is no way to close the screen. Invoke the Close Program dialog box in Windows 95 or the Task Manager in Windows NT 4.0 and select End Task.

Keywords: kbprb KB179605

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.