BUG: DEFINE WINDOW Causes "Not a User-Defined Window" Error

Last reviewed: April 28, 1995
Article 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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 28, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.