BUG: DEFINE WINDOW IN SCREEN Causes "Not a User-Defined..."

ID: Q121081

The information in this article applies to:

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.

REFERENCES

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

Additional reference words: FoxDos buglist2.50 buglist2.50a buglist2.50b buglist2.60 buglist2.60a 2.50 2.50a 2.50b 2.60 2.60a KBCategory: kbprg kberrmsg kbbuglist KBSubcategory:

Last Reviewed: August 28, 1995