Variant Type

Variant variables are capable of storing values that change type dynamically. Variables of any other type (Integer, String, Date, etc.) are statically bound to that type but a variable of the Variant type can assume values of differing types at runtime.

You would use a Variant in situations where the actual type of your data is unknown at compile-time. This is a common situation when writing applications that use COM objects.

Variants have the following characteristics:

Note

For more information, refer to Declaring Variables  the Variant command and Using Variant Data Types with COM.