Null
used to be declared in the System unit, so it was available globally. In Delphi 6, all Variant-related code moved out of that unit and into the new Variants unit. Since Null
is a function that returns a Variant, Null
was included in the move, so it is no longer available implicitly.
To fix the old code, simply add Variants to your uses
clause in any unit that needs it:
uses ..., Variants;