-
COleVariant
How do you determine which type of data is in the COleVariant
object?
basically, i'm retrieving fields from a database from the
GetFieldValue function into a COleVariant object. How do I
determine what type of data the var object is referencing
or do I have to know what data types each field contains
beforehand?
thank you in advance
-
COleVariant encapsules the VARIANT data structure. This structure has a member named vt. You can query this member to determine the type of the VARIANT. Search for VARIANT in MSDN.