Converts a C array into a VFP array.

MarshalCArray2FoxArray(nAddress, @aArray, nType [, nLength | nCodePage [, nCodePage]])

Parameters

nAddress

The base address of the C array.

@aArray

The target VFP array by reference.

The dimensions of the array specifies the size of the C array.

Note

The number of rows and columns is limited to 65000.

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 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

MarshalCArray2Cursor
MarshalCursor2CArray
MarshalFoxArray2CArray