Variants and Delphi.Net

While variant variables (not to be confused with variant records) in Delphi.Net work in the same way as in Delphi for Win32 (at least as far as the end user is concerned) you need to include the Variants unit in your module to make them work.  Failure to do this will result in incompatible type errors when you try to assign from a variant to a regular variable and vice versa.

Leave a Reply