PRB: Function or Procedure in Setup Causes Screen to QuitID: Q112403 2.50 2.50a 2.50b | 2.50 2.50a 2.50b | 2.50b kbprg kbprb
The information in this article applies to:
SYMPTOMSA screen created by the Screen Builder does not run.
CAUSEThe screen's Setup snippet contains a function or procedure.
RESOLUTIONMove the function or procedure to the Cleanup snippet. This is where functions and procedures should be placed.
STATUSThis behavior is by design.
MORE INFORMATIONThe code below a procedure or function is not executed unless that procedure or function is called. When the procedure or function is located in the Setup snippet, all the remaining code below it (for the screen) is treated as a part of the procedure or function.
Steps to Reproduce Problem in FoxPro for Windows
10. When prompted to save changes to the screen, choose Yes.
11. When prompted to save environment information, choose Yes. 12. In the Generate Screen dialog box, choose Generate. 13. Close the Screen Design window. 14. In the Command window, type "DO test.spr" (without the quotation Note that the first WAIT WINDOW appears. After you press a key to
continue, however, the Command window reappears.
Additional reference words: FoxMac FoxDos FoxWin 2.50 2.50a 2.50b KBCategory: kbprg kbprb KBSubcategory: FxtoolSbuilder
|
|
Last Reviewed: May 1, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |