ID: Q123707
The information in this article applies to:
When converting a dBASE IV Form Code File (.FMT) that contains a "colo" text string in the Message clause of a GET field to FoxPro .SCX format, the following behavior occurs:
Program Error
Unrecognized phrase/Keyword in command
If the Text String of a Message clause for a GET field in the .FMT file contains "colo," then during conversion FoxPro falsely interprets it as COLOR clause and modifies it as following:
"@ 2,10 GET Address PICTURE "@S68 XXXX" ;
MESSAGE "Use semicolons for carriage returns"
The conversion process converts it to look like this:
@ ...... GET ADDRESS.......PICTURE "XXXX";
MESSAGE "Use semi ;
COLOR or carri
Here are three possible workarounds:
-or-
-or-
ARTICLE-ID: Q96290
TITLE : Generating Screen Code by Directly Calling GENSCRN.PRG
Once the .SPR file is created, edit it by using the MODIFY COMMAND|FILE
command to modify the MESSAGE and the COLOR clauses for the GET field
changed by the conversion.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
To see the result of this problem:
1. Create a dBASE IV FORM that contains a GET field that uses the following
text for the Message clause:
Use semicolons for carriage returns.
If you do not have dBASE IV, create a text file containing code similar
to the following code, and save it with a .FMT extension:
@ 2,10 GET Address PICTURE "@S68 XXXX" ;
MESSAGE "Use semicolons for carriage returns"
2. Start FoxPro for MS-DOS, and follow these steps:
a. Choose the "Convert dBASE files..." option from the RUN menu.
b. If the .FMT file created in step 1 is not displayed in the Select box
of the Convert Files dialog, use the Directory push button to find
the file.
c. Select one of the .FMT files. Then choose the Process push button.
d. Once the .FMT file is converted and a .SCX file is created, close the
Convert Files dialog.
e. Use the "Modify Screen..." command to EDIT the .SCX file you created.
C. Start FoxPro for Windows, and follow these steps:
a. Choose the "Convert dBASE files..." option from the RUN menu.
b. If the .FMT file created in step 1 is not displayed in the Select box
of the Convert Files dialog, use the Directory push button to find
the file.
c. Select one of the .FMT files. Then choose the Process push button.
d. Once the .FMT file is converted and a .SCX file is created, close the
Convert Files dialog.
e. Use the "Modify Screen..." command to edit the .SCX file you created.
When the FoxPro Transport dialog comes up, choose the Transport and
Open push button with Transport Objects From set to FoxPro for
MS-DOS/UNIX.
f. Generate the screen to create a .SPR file.
g. Run the Generated screen.
Additional reference words: FoxWin FoxDos 2.60 2.60a buglist2.60
buglist2.60a GPF migrate convert migration
KBCategory: kb3rdparty kbbuglist
KBSubcategory: FxinteropDbase
Last Reviewed: June 28, 1995