Skip to content

#COMPAT

#Compat

Purpose

The #Compat directive sets the compile-time revision Integer Revision Integer.

Syntax

#Compat {revision-number}

What It Does

Compiled DataFlex program files are automatically marked with a revision Integer. The default value of the integer is the revision of DataFlex under which the program was compiled. Programmers may wish to implement their own revision systems. The #Compat directive is used to set the value of the revision integer in the program file and the value of the compile-time Integer Revision Integer.

The #Compat directive and the compile-time directive differ from the x compile-time option in that they can be placed in program code so that a given set of source code actually sets its own compatibility mode. Although the usual place to do this would be at the top of a program, the compatibility mode can, in fact, be changed in the middle of a program as well, as many times as desired.