Delphi Error – W1040 Implicit use of Variants unit

Delphi Compiler Error

W1040 Implicit use of Variants unit

Reason for the Error & Solution

If your application is using a Variant type, the compiler includes the Variant unit in the uses clause but warns you that you should add it explicitly.