DOCUMENT:Q121081  09-NOV-1994  [FOXPRO]
TITLE   :PRB: DEFINE WINDOW IN SCREEN Causes "Not a User-Defined..."
PRODUCT :Microsoft FoxPro
PROD/VER:2.5x 2.60 2.60a
OPER/SYS:MS-DOS
KEYWORDS:kbprg kberrmsg kbprb

-----------------------------------------------------------------------
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 for
MS-DOS versions 2.5x, 2.6, 2.6a. 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.

REFERENCES
==========

FoxPro "Language Reference," versions 2.5, 2.6, page L3-427

Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 2.60a
KBCategory: kbprg kberrmsg kbprb
KBSubcategory:

=============================================================================

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.

Copyright Microsoft Corporation 1994.