Add ability to preset the ITERATE variable and ability for the variable value to be preserved after the ITERATE is complete
Date:
12/20/2017
Operating System:
Any
Version of OS:
N/A
Cloverleaf Version:
Next Version??
Revision:
N/A
Tool:
Xlate
Enhancement Long Description:
I think it would be helpful if one could pre-load the starting point for an ITERATE. For example if one wanted to begin an OBX Group Iteration somewhere other than the beginning (assume %g1 is the ITERATE Variable) one could just COPY =4 to $%g1 prior to the ITERATE and the ITERATE would check to see if its variable (in this case %g1) is anything other than zero – or – one could set the variable and then in the ITERATE Configuration check a checkbox indicating the value is already set.
This would provide a more efficient way of beginning an Iteration other than the beginning rather than Iterating and inside the ITERATE checking until the appropriate repetition is found and then do real work.
Also sometimes it is needed to know how many iterations there are in a set. Currently at the end of an ITERATE the Variable is reset to zero. So what we do is to COPY $%
Even more efficient might be if there were a way to just get the ITERATE Variable populated with the count of repeating elements without actually Iterating.
Also with the inclusion of the BREAK capability it would be nice to be able to know where in the repetition set the break took place.
In both cases if the ITERATE configuration had a checkbox that allowed preserving of the variable value at exit from the ITERATE (either normal falling out of the end or issuance of a BREAK) I think that would simplify some of the coding and perhaps add some efficiency.
Anybody have thoughts on this?
I did not use Infor Xtreme because I do not currently have access to Infor Xtreme.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.