PRB: Syntax Error on RELEASE WINDOW Command

Last reviewed: June 27, 1995
Article ID: Q126233
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c, 2.6a
  • Microsoft FoxPro for UNIX, version 2.6

SYMPTOMS

A "Syntax Error" occurs on the RELEASE WINDOW command.

CAUSE

The window name that is being released begins with a number.

RESOLUTION

Ensure that all window names begin with a letter or an underscore.

MORE INFORMATION

In the Help for the DEFINE WINDOW Command, the following rules are stated for naming windows:

   Window names can be up to 10 characters long. They must begin with a
   letter or underscore. They cannot begin with a number. They can contain
   any combination of letters, numbers, and underscores.

Steps to Reproduce Behavior

Type the following commands in the Command window:

   MODIFY FILE 123456.txt
   WAIT WINDOW WONTOP()   && should return '123456.TXT' (without quotes)
   RELEASE WINDOW (WONTOP())   && causes a "Syntax error"
   RELEASE WINDOW 123456.TXT   && causes a "Syntax error"

To close this window, the command CLOSE ALL can be issued.

REFERENCES

Microsoft FoxPro Help, "DEFINE WINDOW Command".


Additional reference words: FoxWin FoxDos FoxMac FoxUnix 2.60a
KBCategory: kbprg kbprb
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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.