Hi all,
I have a method of a class that gets passed empty table objects and in that method a temp table of the same table does the appropriate calculations. The trouble is when I try to assign the temp table to the table object that was passed to the method, it won’t assign anything to the object even though the temp table has data. I think it has to do with the difference between temp table scope on the three tiers. Here is an example of the code:
void createTmpData(PriceDiscTable _price, PriceDiscTable _discount, …)
{
PriceDiscTable price, discount;
;
price.setTmp();
discount.setTmp();
/******* calculations performed ********/
/* Trouble Spot */
_price.setTmpData(price); // price has data and _price doesn’t get the data.
_discount.setTmpData(discount); // discount has data and _discount doesn’t get the data.
}
Any ideas? Thanks in advance for any help you can provide.
Bob