Microsoft KB Archive/129393

{| = BUG: DEFINE WINDOW Causes "Not a User-Defined Window" Error =
 * width="100%"|

ID: Q129393

The information in this article applies to:


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

SYMPTOMS
The following error message may occur when using the DEFINE WINDOW command.

Not a user-defined window.

CAUSE
The DEFINE WINDOW command generates this error message if you use a window name that starts with the reserved name "SCREEN," which is used by the main FoxPro window.

WORKAROUND
Rename the window, possibly by prefacing the name with a letter. For example:

DEFINE WINDOW Ascreen1 FROM 1,1 TO 10,10

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
This is different behavior than observed in FoxPro for Windows which allows you to create the above window definition without an error. This can cause problems when porting this code from FoxPro for Windows to FoxPro for MS- DOS.

Steps to Reproduce Problem
Type the following in the Command window:

DEFINE WINDOW Screen1 FROM 1,1 TO 10,10 Additional reference words: 2.60 2.60a FoxDos buglist2.60 buglist2.60a errmsg user defined KBCategory: kbprg kbbuglist kberrmsg KBSubcategory: FxprgUdwindow
 * }