Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a array value from a ILE procedure.

Status
Not open for further replies.

InfoCorp

Programmer
Mar 18, 2004
10
0
0
US
What is the best way to pass an array from a procedure to my entry point program?

Thank you.
 
You can also use the DIM leyword when you specify the procedure.
Code:
D ProcName    PR         7  Dim(20)
D  Parameter            10
would return an array of 20, 7 character fields which can then be used like
Code:
D ReturnData    S         7  Dim(20)
C         Eval    ReturnData = ProcName(parm)

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top