Jul 23, 2004 #1 InfoCorp Programmer Joined Mar 18, 2004 Messages 10 Location US What is the best way to pass an array from a procedure to my entry point program? Thank you.
Jul 24, 2004 #2 LearningFox Programmer Joined Nov 25, 2001 Messages 43 Location US I've just recently started passing pointers. Seems to work very well. If this is not familiar to you, there is an excellent tutorial at http://www.scottklement.com/rpg/pointers.html Upvote 0 Downvote
I've just recently started passing pointers. Seems to work very well. If this is not familiar to you, there is an excellent tutorial at http://www.scottklement.com/rpg/pointers.html
Sep 24, 2004 #3 PeteJohnston Programmer Joined Nov 6, 2002 Messages 291 Location GB 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) Upvote 0 Downvote
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)