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.
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[]
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