Hi Ed,
>typedef struct
>{
> ADDR_REC stack[10]; /********** record stack **********/
>} ZIP4_PARM;
First of all you need to create a structure class for a single ADDR_REC which contains all members from the typedef of ADD_REC. Then you can define ZIP4_PARM as follows:
DEFINE CLASS ZIP4_PARM AS Struct
cMembers = "ADDR_REC o:stack"
DIMENSION stack[10]
PROCEDURE INIT
LOCAL lnStack
FOR lnStack=1 to 10
THIS.stack[lnStack] = CREATEOBJECT("ADDR_REC")
ENDFOR
RETURN DODEFAULT()
ENDDEFINE
You can access memebers like this: oZIP4Parm.stack[3].cSomeMember
If you do know C/C++, you should consider writing a FLL to access these API functions that require such structures. Struct was designed to ease the use of structures for VFP developers, not to make structures fast.
Christof
--
Christof