CA_VariantGetType
unsigned int CA_VariantGetType (const VARIANT *variant);
Purpose
Determines the type of value the specified variant contains.
Parameters
Input | ||
Name | Type | Description |
variant | const VARIANT * | Pointer to the variant variable to inspect. |
Return Value
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
type | unsigned int | Returns one of the following values:
If the variant contains a pointer, this function returns the CAVT_BYREF flag OR'ed in with one of the following values. If the variant is a pointer to an array, the CAVT_ARRAY flag is also OR'ed into the value. CAVT_SHORT CAVT_LONG CAVT_FLOAT CAVT_DOUBLE CAVT_CY CAVT_DATE CAVT_BSTR CAVT_DISPATCH CAVT_ERROR CAVT_BOOL CAVT_VARIANT CAVT_UNKNOWN CAVT_UCHAR CAVT_CHAR CAVT_USHORT CAVT_ULONG CAVT_UINT CAVT_LONGLONG CAVT_ULONGLONG If the variant contains an array, this function returns CAVT_ARRAY OR'ed in with one of the following values: CAVT_SHORT CAVT_LONG CAVT_FLOAT CAVT_DOUBLE CAVT_CY CAVT_DATE CAVT_CSTRING CAVT_DISPATCH CAVT_ERROR CAVT_BOOL CAVT_VARIANT CAVT_UNKNOWN CAVT_UCHAR CAVT_CHAR CAVT_USHORT CAVT_ULONG CAVT_UINT CAVT_LONGLONG CAVT_ULONGLONG |
Additional Information
Library: ActiveX Library
Include file: cviauto.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later