PRB: Splitting a Filename in a Command Line Causes Error

ID: Q111318

The information in this article applies to:

SYMPTOMS

Using a semicolon (;) to split a filename over two or more lines in a command line generates the error message Unrecognized phrase/keyword in command."

RESOLUTION

To use a semicolon to break program lines containing filenames, use one of the following two methods:

MORE INFORMATION

Steps to Reproduce Behavior

1. Assuming you do not already have a program called TEST.PRG, create a

   program called TEST.PRG that contains the following lines of code. You
   can substitute any directory path to a valid .DBF file.

      USE C:\FOXPROW\TUT;
      ORIAL\CUSTOMER

2. Save the program, and type "DO test" (without the quotation marks) in
   the FoxPro Command window.

You should receive an "Unrecognized phrase/keyword in command" error.

Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b err msg errmsg continue continuation partial split break divide KBCategory: kbprg kberrmsg kbprb KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995