ID: Q126233
The information in this article applies to:
A "Syntax Error" occurs on the RELEASE WINDOW command.
The window name that is being released begins with a number.
Ensure that all window names begin with a letter or an underscore.
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.
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.
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