![]() |
#2 |
Участник
|
Попробуйте сделать так:
X++: display AmountCurDebCred getTotalAmountCur(CutsTrans _curCustTrans) { ; select sum(AmountCur) from ctr where ctr.AccountNum == _curCustTrans.AccountNum; return ctr.AmountCur; } X++: display AmountCurDebCred getTotalAmountCur(CustTable _curCustTable) { ; select sum(AmountCur) from ctr where ctr.AccountNum == _curCustTable.AccountNum; return ctr.AmountCur; } Не уверен что будет работать быстрее, но так по крайней мере идеологически правильнее.
__________________
С уважением, Dozer |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|