Extend system

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Extend system

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply