PRB: Syntax Error on RELEASE WINDOW Command

ID: Q126233

The information in this article applies to:

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

Last Reviewed: June 27, 1995