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.
TypeC Array declaration
CTYPE_SHORTshort array[]
CTYPE_USHORTunsigned short array[]
CTYPE_INTint array[]
CTYPE_UINTunsigned int array[]
CTYPE_FLOATfloat array[]
CTYPE_DOUBLEdouble array[]
CTYPE_BOOLBOOL array[]
CTYPE_CSTRINGchar* array[]
CTYPE_WSTRINGwchar_t* array[]
CTYPE_CHARARRAYchar array[][]
CTYPE_WCHARARRAYwchar_t array[][]
CTYPE_INT64__int64 array[]
CTYPE_UINT64unsigned __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