philippoommen1
Member
Hi,
I have tow progress environment. If I run the below code in one session of Progress editor it work fine as expected with out an infinite loop. However in other environment it ends up in a infinite loop. Any one can help me What causing this infinite loop? Is there any start up parametr?
DEF VAR vcnt1 AS INT .
DEF VAR vCnt2 AS INT.
DEF TEMP-TABLE temp-item
FIELD item-no AS CHAR
FIELD itmcnt AS INT.
FOR EACH item:
CREATE temp-item.
temp-item. = item.item-no.
vcnt1 =vCnt1 +1.
END.
DISP cnt1.
FOR EACH temp-item:
vCnt2 = vCnt2 + 1.
temp-item.itmcnt = vCnt2.
DISP temp-item.itmcnt.
PAUSE 0.
END.
TIA
Philip
I have tow progress environment. If I run the below code in one session of Progress editor it work fine as expected with out an infinite loop. However in other environment it ends up in a infinite loop. Any one can help me What causing this infinite loop? Is there any start up parametr?
DEF VAR vcnt1 AS INT .
DEF VAR vCnt2 AS INT.
DEF TEMP-TABLE temp-item
FIELD item-no AS CHAR
FIELD itmcnt AS INT.
FOR EACH item:
CREATE temp-item.
temp-item. = item.item-no.
vcnt1 =vCnt1 +1.
END.
DISP cnt1.
FOR EACH temp-item:
vCnt2 = vCnt2 + 1.
temp-item.itmcnt = vCnt2.
DISP temp-item.itmcnt.
PAUSE 0.
END.
TIA
Philip