SET COMPATIBLE Command
Controls compatibility with Microsoft FoxBASE+ and other FoxPro languages.
- FOXPLUS | OFF
(Default) These two keywords can be used interchangeably. Each allows programs created in FoxBASE+ to run in Microsoft Visual FoxPro without changes.
- DB4 | ON
These two keywords can be used interchangeably. Including either keyword affects the behavior of the commands and functions listed below.
- PROMPT | NOPROMPT
These options determine whether Visual FoxPro displays a dialog box when you open a dBASE table containing a memo field.
Include the PROMPT option to display the Convert Memos dialog box. If you open a dBASE IV table containing a memo field, Visual FoxPro by default displays the Convert Memos dialog box, which enables you to convert the dBASE memo file to a Visual FoxPro format. You must convert the memo file to a Visual FoxPro format to open the table in Visual FoxPro.
If you include NOPROMPT, the Convert Memos dialog box is not displayed when you open a dBASE IV table containing a memo field. The dBASE memo file is automatically converted to a Visual FoxPro format.
Commands and functions affected by SET COMPATIBLE include LIKE( ), PLAY MACRO, SELECT( ), and STORE (when STORE is used with arrays).
SET COMPATIBLE does not create compatibility with other commands, functions, or features not supported in Visual FoxPro. For example, it does not make it possible for you to open a report form created in other products with the Report Designer.
The following table lists the commands affected by SET COMPATIBLE.
@ ... GET with a RANGE clause
@ ... SAY with CHR(7)
READ with an @ ... GET VALID clause
@ ... SAY scrolling
@ ... SAY when STATUS is ON
GO | GOTO with SET TALK ON
SET PRINTER to <file>
TRANSFORM( ) with a numeric PICTURE clause