$LEGACY Language LEGACY level


General Form:

$LEGACY LEGACY-level

To have any effect, this statement must be one of the first statements in a program (Only blank lines, comments $ID and $COMPLIANCE are permitted before it).

The $LEGACY statement is used to declare the src file contains legacy code. This determines certain behaviour to work in a legacy manner and to restrict certain errors that are common in legacy code and not detected in previous versions of KCML.

Affected operations are currently permitting writing to read-only properties in the Create event and tidying up forms throught the Tidy property

The LEGACY-level must be 0. No other value is currently defined.

The $LEGACY statement was introduced in KCML 7.09 and added to KCML 7.08 from build 20161

See also:

$COMPLIANCE