Converts a VFP cursor into a C array.
MarshalCursor2CArray(nAddress, cCursorAndFieldNames, nType [, 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[]
- nLength | nCodePage (optional)
Either the length of a character array or the codepage to use for ansi to unicode conversion.
- nCodePage (optional)
The codepage to use for ansi to unicode conversion.
Return Value
Always .T.
Remarks
The fields of the cursor must be of proper type or NULL otherwise "invalid arguments" error is risen.
NULL values are ignored and the value at the current array index is not changed.
For character type pointer arrays, CTYPE_CSTRING and CTYPE_WSTRING a NULL value results in a 0 pointer.
See Also
Reference
MarshalCArray2Cursor
MarshalCArray2FoxArray
MarshalFoxArray2CArray