Microsoft KB Archive/126233

{| = PRB: Syntax Error on RELEASE WINDOW Command =
 * width="100%"|

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.