FIX: GENDBC Error: Command contains unrecognized phrase/keyword
Article ID: 134366
Article Last Modified on 3/24/2000
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
This article was previously published under Q134366
SYMPTOMS
The following error occurs on DBSETPROP() when a program created by
GENDBC.PRG is run:
Command contains unrecognized phrase/keyword
CAUSE
A comment for a field in a table contains a Carriage Return.
WORKAROUND
Use the following steps to modify GENDBC.PRG located in the Visual FoxPro
TOOLS\GENDBC directory so that it adds the CHR(13) as a character in the
Comment field.
- Type the following command in the Command window to open the GENDBC
program:
MODIFY COMMAND SYS(2004)+"TOOLS\GENDBC\GENDBC.PRG"
- Choose Find from the Edit menu and type the following in the Look For
box including the quotation marks:
- Add a new line to the program below the following line of code, which is
two lines below the line that was found:
cTemp = STRTRAN( cTemp, ["], ['] )
- Type the following command on the new line created in Step 3:
cTemp = STRTRAN( cTemp, CHR(13), ["+CHR(13)+"] )
- Save and close the program file.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in
Visual FoxPro 3.0b for Windows.
REFERENCES
Visual FoxPro Help File, Topic "GENDBC.PRG."
Additional query words: VFoxWin fixlist3.00b buglist3.00
Keywords: kbbug kbfix KB134366