DVARIANT.ToULongIntArraymethod
Extracts an array of ULONGINT values from DVARIANT.
Syntax
FUNCTION ToULongIntArray (BYVAL prgn AS ULONGINT PTR, BYVAL crgn AS ULONG) AS ULONG
Parameters
| Name | Description | |
|---|---|---|
prgn | Pointer to a buffer that contains crgn ULONGINT variables. When this function returns, the buffer has been initialized with UInt64 elements extracted from DVARIANT. | |
crgn | The number of elements in the buffer pointed to by prgn. |
Return value
The count of UInt64 elements extracted from the DVARIANT.
Description
Extracts an array of ULONGINT values from DVARIANT.
Remarks
This helper function is used when the calling application expects a VARIANT to hold an array that consists of a fixed number of UInt64 values.
If the source VARIANT is of type VT_ARRAY OR VT_UI8, this function extracts up to crgn UInt64 values and places them into the buffer pointed to by prgn. If the VARIANT contains more elements than will fit into the prgn buffer, this function returns 0.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:2140
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class