SetCompatibility

Miscellaneous functions

Description

Enables or disables a numbered compatibility switch for the current library instance. Compatibility switches are reserved for preserving legacy output behavior while newer defaults continue to evolve.

Only item numbers in the 100..199 range are accepted. Pass mode 1 to enable an item and mode 0 to clear it.

Syntax

Delphi

Function SetCompatibility(CompatibilityItem, CompatibilityMode: Integer): Integer;

Parameters

CompatibilityItemCompatibility switch number. Current public switches use the reserved 100..199 range.
CompatibilityMode0 clears the switch. 1 enables the switch.

Returns

Returns 1 when the item and mode are accepted; returns 0 for an out-of-range item or mode.