Microsoft KB Archive/121081

{| = BUG: DEFINE WINDOW IN SCREEN Causes "Not a User-Defined..." =
 * width="100%"|

ID: Q121081

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.5x, 2.6, 2.6a

SYMPTOMS
A DEFINE WINDOW statement using the IN SCREEN clause results in the error message "Not a user-defined window."

RESOLUTION
Choose a name for the window that does not begin with the word "screen".

STATUS
Microsoft has confirmed this to be a problem in Microsoft FoxPro versions 2.5x, 2.6, 2.6a for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
The IN SCREEN clause of the DEFINE WINDOW command permits a window to be defined on the main FoxPro screen instead of within a window. This capability exists in both the MS-DOS and Windows versions of FoxPro.

In FoxPro for MS-DOS, using a window name beginning with the word "screen" in a DEFINE WINDOW ... IN SCREEN command produces the error message "Not a user-defined window." This behavior does not occur in FoxPro for Windows.

Steps to Reproduce Problem
In the Command window, type:

DEFINE WINDOW screen1 FROM 5,5 TO 10,10 IN SCREEN The error message mentioned above appears.