BUG: dBASE .FMT with "colo" in Message Migrates Erroneously

ID: Q123707

The information in this article applies to:

SYMPTOMS

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:

CAUSE

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:

For example, if the .FMT file contains this code:

   "@ 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

RESOLUTION

Here are three possible workarounds:

STATUS

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.

MORE INFORMATION

To see the result of this problem:

Steps to Reproduce 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