Microsoft KB Archive/103465: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
Line 1: Line 1:
{|
{|
|width="100%"|
|width="100%"|
= PRB: CONFIG.FP or CONFIG.FPW Causes "Syntax Error" at Startup =
= PRB: CONFIG.FP or CONFIG.FPW Causes "Syntax Error" at Startup =


'''ID: Q103465'''
'''ID: Q103465'''
Line 31: Line 31:
To correct this problem, do the following:
To correct this problem, do the following:


1. Remove the space between the "-c" switch and the path and filename
1. Remove the space between the "-c" switch and the path and filename


<pre>  for the configuration file.
<pre>  for the configuration file.
Line 52: Line 52:
</pre>
</pre>
4. Quit FoxPro.
4. Quit FoxPro.
5. Start FoxPro with the syntax noted above in the &quot;Cause&quot; section,
5. Start FoxPro with the syntax noted above in the "Cause" section,


<pre>  making sure that the full path and filename point to the CONFIG.FPW
<pre>  making sure that the full path and filename point to the CONFIG.FPW

Revision as of 09:26, 20 July 2020

PRB: CONFIG.FP or CONFIG.FPW Causes "Syntax Error" at Startup

ID: Q103465

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SYMPTOMS

When you are starting FoxPro with an associated CONFIG.FP or CONFIG.FPW file, the following error messages may occur:

   Syntax error
   <Cancel> <Suspend> <Ignore>

   Variable <variable name> not found
   <Cancel> <Suspend> <Ignore>

CAUSE

FoxPro is executing the CONFIG.FP or CONFIG.FPW file as a program file. This behavior most often occurs because of an incorrectly specified startup switch. For example, the following command issued at the MS-DOS prompt will cause a syntax error:

   foxpro.exe -c <drive>:\<directory>\<configuration file>

NOTE: This command will cause an error as long as the specified configuration file exists and has entries in it.

RESOLUTION

To correct this problem, do the following:

1. Remove the space between the "-c" switch and the path and filename

   for the configuration file.

2. Look for the SET FOXPROWCFG line in the Autoexec.bat file to ensure

   that the startup switches are correct.

MORE INFORMATION

Steps to Reproduce Problem

1. Start FoxPro.

2. In the Command window, type:

      MODIFY COMMAND SYS(2019)

3. Change the first line so it reads:

      COMMAND = WAIT WINDOW

4. Quit FoxPro. 5. Start FoxPro with the syntax noted above in the "Cause" section,

   making sure that the full path and filename point to the CONFIG.FPW
   or CONFIG.FPW file used by FoxPro.
Keywords          : kberrmsg FoxDos FoxWin FxenvConfigfp 
Version           : 2.0 2.5 2.5a
Issue type        : kbprb

Last Reviewed: June 24, 1997
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.