PRB: SET COMPATIBLE ON Causes Error with Gendbc.prg (287111)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q287111

SYMPTOMS

If SET COMPATIBLE is set to ON and you run Gendbc.prg against a database container, you may receive the following error message:
Unrecoverable Error:
Operator/Operand type mismatch.
At Line: 438

RESOLUTION

Before you run Gendbc.prg, make sure that SET COMPATIBLE is set to OFF.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In the Command window, issue the following command:
    SET COMPATIBLE ON
    					
  2. Run Gendbc.prg against the Testdata database by using the following code:
    OPEN DATABASE home(2)+"data\testdata"  
    DO SYS(2004)+'tools\gendbc\gendbc' WITH 'testdata.prg' 
    					

Modification Type:MajorLast Reviewed:2/7/2001
Keywords:kbCodeSnippet kbDatabase kbDSupport kbprb kbXBase KB287111