DSAFEARRAY.MoveFromVariantmethod
Transfers ownership of the safe array contained in the variant parameter to this object.
Syntax
FUNCTION MoveFromVariant (BYVAL pvar AS VARIANT PTR) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pvar | Pointer to the variant containing the safe array. |
Return value
S_OK (0) on success or an HRESULT code on failure.
Description
Transfers ownership of the safe array contained in the variant parameter to this object. The variant is then changed to VT_EMPTY.
Reference
- Include file
DSafeArray.inc - Defined in AfxNova/DSafeArray.inc:1014
- Documented in COM/DSAFEARRAY Class.md
- Topic: DSAFEARRAY Class