Share via


SET COMPATIBLE Command

Controls compatibility with Microsoft FoxBASE+ and other FoxPro languages.

SET COMPATIBLE FOXPLUS | OFF | DB4 | ON [PROMPT | NOPROMPT]

Parameters

  • 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.

Remarks

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.

Commands

@ ... GET with a RANGE clause

PLAY MACRO

@ ... SAY with CHR(7)

READ with an @ ... GET VALID clause

@ ... SAY scrolling

Nested READs

@ ... SAY when STATUS is ON

READ

ACTIVATE SCREEN

RUN | !

ACTIVATE WINDOW

SET COLOR TO

APPEND MEMO

SET BORDER

BROWSE

SET FIELDS

DECLARE

SET MESSAGE

DIMENSION

SET MEMOWIDTH

GO | GOTO with SET TALK ON

SET PRINTER to <file>

FSIZE( )

STORE

INKEY( )

SUM

LASTKEY( )

TRANSFORM( ) with a numeric PICTURE clause

LIKE( )

SELECT( )

Menu commands

SYS(2001, "COLOR")

See Also

Reference

SET KEYCOMP Command

SET Command Overview

Other Resources

Backward-Compatible Language Elements

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)