for each statement (solved/explained)
Hi Girls and Guys,
Simple question
Should I expect this feature to work in the future?
if I remove the line at (1) then tmpcust is not avail after the loop and that is as expected but if I leave the line (1) in, then tmpCust record is avail.
I thought that for each ... was a "closed" block.
Comments?
Hi Girls and Guys,
Simple question
Should I expect this feature to work in the future?
Code:
def buffer tmpCust for customer.
def var i as int.
for each tmpCust :
i = i + 1.
if i = 1000 then leave. /* (1)*/
end.
message avail tmpCust tmpCust.name i view-as alert-box.
if I remove the line at (1) then tmpcust is not avail after the loop and that is as expected but if I leave the line (1) in, then tmpCust record is avail.
I thought that for each ... was a "closed" block.
Comments?