Page 1 of 1

Extend system

Posted: Wed Feb 28, 2007 10:03 pm
by byte-one
Hello all,
I write a interface for use of shape-files. All the sourcecode is in C. My problem are the array-parameters. In the Extended System from Harbour are no functions to send or retrieve arrays to/from a C-function. In some cases the arrays are given by reference. Is there a solution? Thanks.
Guenther

Posted: Wed Feb 28, 2007 10:14 pm
by Antonio Linares
Guenther,

Harbour extend system is fully Clipper compatible so you have all the required functions to manage arrays:

To retrieve an array element:

hb_par...( iParamNum, iArrayIndex )

To create an array and return it:

hb_reta( iElements )

To set an array element:

hb_stor...( <uValue>, iParamNum, iArrayIndex )

where iParamNum is -1 if it is a created array using hb_reta()