FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Extend system
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Extend system
Posted: Wed Feb 28, 2007 10:03 PM

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

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Extend system
Posted: Wed Feb 28, 2007 10:14 PM

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

Continue the discussion