FIX: Output from Screen Program Goes to Current Output WindowLast reviewed: September 22, 1997Article ID: Q96291 |
2.00 2.50
MS-DOS
kbprg kbfixlist kbbuglist kberrmsg
The information in this article applies to:
SYMPTOMSWhen you are executing a screen program (.SPR) in which the screen is displayed in a window, the @ ... SAY or @ ... GET commands may not be displayed inside the window that was created in the screen program, or the following error message may be generated:
Position is off the screen CAUSEThere are two ways to reproduce this problem:
Method 1
Method 2
This behavior occurs because the following code is generated in TRYIT.SPR:
IF NOT WEXIST("tryit") DEFINE WINDOW tryit ;If TRYIT.SPR, TRYIT.SCX, or another window named tryit is on screen, WEXIST ("tryit"), evaluates to true, and the window named tryit with the Screen Builder is not defined and activated. The output will go either to the desktop, or to the previously defined tryit window. If the activated "tryit" window is too small for the coordinates for the @ ... SAY or @ ... GET commands in the screen program (for example "tryit" is DEFINEd FROM 1,1 to 5,5 and the SAY/GET position in the .SPR file is 6,10), the error message will appear.
RESOLUTIONIn the SETUP code for the screen, use the following generator directive:
#REDEFINEThis will ensure that the window named "tryit" with the Screen Builder will always be defined, regardless of whether a window of the same name already exists.
STATUSMicrosoft has confirmed this to be a problem in FoxPro version 2.0 for MS-DOS. This problem was corrected in FoxPro version 2.5 for MS-DOS.
REFERENCES"Developer's Guide," version 2.0, Chapter 2, "Screen Layout"
|
Additional reference words: FoxDos 2.00 2.50 buglist2.00 fixlist2.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |