DVARIANT.ToStringArraymethod
Extracts data from a vector structure into a PWSTR array.
Syntax
FUNCTION ToStringArray (BYVAL prgsz AS PWSTR, BYVAL crgsz AS ULONG) AS ULONG
Parameters
| Name | Description | |
|---|---|---|
prgsz | Pointer to a buffer that contains crgn PWSTR values. When this function returns, the buffer has been initialized with elements extracted from the source VARIANT structure. | |
crgsz | The number of elements in the buffer pointed to by prgsz. |
Return value
The count of PWSTR elements extracted from the DVARIANT.
Description
Extracts data from a vector structure into a PWSTR array.
Remarks
This helper function is used when the calling application expects a DVARIANT to hold an array of PWSTR values. If the VARIANT contains more elements than will fit into the prgsz buffer, this function returns 0.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:2194
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class