itemChilds is a temporary table. I want to modify and update every record in it so I thought the following code would do the job:
BOACF20_USCustomsLine itemChilds; Real ratio = 1.1; //Or whatever else
while select forupdate itemChilds {
itemChilds.PriceUnit = (itemChilds.PriceUnit * ratio);
itemChilds.update();
}I have 4 records in this table but this code keeps on looping on the same 4 record. I think it stops when the field PriceUnit is full (huge number). Because when I go in debug mode, it keeps on looping and when I'm in "normal" mode the report is displayed with "*******************" where the value would be. Don't worry, I've got plenty of space to display the value. If I remove "itemChilds.update();", the loop browse every record once and exit, but this way I can't update the field.
Got an idea? Thanks.
Steeve...
Yahoo! Groups Sponsor ADVERTISEMENT
Click to learn more...
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

