>VT_ARRAY denotes a safe array Variant type used with OLE Automation. Using Windows API, you're supposed to access OLE variant array using Data Manipulation function ssuch as SafeArrayAccessData(), etc.
>
>Under VFP, you can pass array structures to OLE objects' methods, but only by reference (prefixed with @ character). You're also limited to up to two-dimensional arrays only.
>
>You can also receive OLE Variant arrays as the return values of functions.
>Search under VFP Help, "Using Arrays of OLE Objects" for sample code.
>
>HTH!
Thank Alistair, however the function I'm calling looks like this
short GetColumnHeadings(long QueryID, VARIANT *Headings)
This functions returns the column headings (also referred to as column names).
Example:
Stat = Shuttle.GetColumnHeadings(QueryID, ColHeadings)
Parameters
1. QueryID
The ID of the query, as returned from InitializeQuery().
2. ColHeadings
A pointer to a VARIANT in which the result will be stored. The result is an array of strings (variant type VT_ARRAY | VT_BSTR) containing one string for each column heading.
Note: The VARIANT must be properly initialized before calling this function. Visual Basic does this automatically; Visual C++ programmers should call VariantInit().
Return Value
integer variable 0 for ok -1 for failed
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only