Recursive programs

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
FoxBill
Profound User
Posts: 38
Joined: Mon Jun 20, 2011 11:44 am
First Name: Bill
Last Name: Streit
Company Name: Fox Metro WRD
Contact:

Recursive programs

Post by FoxBill »

I have a a program that is recursive. I go from one program to multiple other programs and then back to original program or Call another program then call back to the original program. In the past When i called and parm to the other program I would use the Free command . When I try this in a ProfoundUI program the compile blows up. Is there a similar command used or how would you handle this in UI program?
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Recursive programs

Post by Brian »

This is not an issue with ProfoundUI. The FREE opcode was removed in RPGIV. RPGIV by itself does not support recursion. I suggest reconsidering your design to avoid calling the same program recursively.

If you my must use recursion, you will need to do so using ILE subprocedures. ILE does support recursion.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests