Converts a C array into a VFP cursor.
MarshalCArray2Cursor(nAddress, cCursorAndFieldNames, nType, nRows [, nLength | nCodePage [, nCodePage]])
Parameters
- nAddress
The base address of the C array.
- cCursorAndFieldNames
The cursor and fieldnames e.g. "cursorname.fieldname, fieldname2".
- nType
The C datatype of the array.
One of the following values. Type C Array declaration CTYPE_SHORT short array[] CTYPE_USHORT unsigned short array[] CTYPE_INT int array[] CTYPE_UINT unsigned int array[] CTYPE_FLOAT float array[] CTYPE_DOUBLE double array[] CTYPE_BOOL BOOL array[] CTYPE_CSTRING char* array[] CTYPE_WSTRING wchar_t* array[] CTYPE_CHARARRAY char array[][] CTYPE_WCHARARRAY wchar_t array[][] CTYPE_INT64 __int64 array[] CTYPE_UINT64 unsigned __int64 array[]
- nRows
The number of rows to marshal.
- nLength | nCodePage (optional)
Either the length of a character array or the codepage to use for unicode to ansi conversion.
- nCodePage (optional)
The codepage to use for unicode to ansi conversion.
Return Value
Always .T.
Remarks
For character type pointer arrays, CTYPE_CSTRING and CTYPE_WSTRING a 0 pointer is converted into a NULL value.
See Also
Reference
MarshalCArray2FoxArray
MarshalCursor2CArray
MarshalFoxArray2CArray