>>>Hi everybody,
>>>
>>>I found that both programs LoadNewTrans and ProcessNewTrans have BuildDetailInfo function with different code. If LoadNewTrans calls ProcessNewTrans, which BuildDetailInfo function is executed?
>>>
>>>Thanks in advance.
>>
>>If you mean they are prg files and yopu have "set proc to ..." style setup then the one in the first procedure file (ie: if set procedure to LoadNewTrans were the first set proc call then the one in it). It's a reason to switch to classes IMHO.
>>Cetin
>
>Thanks a lot.
>
>Basically, my colleague wrote both functions as a procedural code. It was done long time ago before I created my BusinessProcess class. We switched to class in LoadNewTrans (this is what I'm testing right now and getting Invalid Seek Offset sometimes).
>
>We're not yet ready to move the new code to production. I'm also not sure we can switch ProcessNewTrans to the class. I checked the code, it's not very easy, also it's used in multiple places and sometimes only the part of the code (CollectionUpdate) is called.
>
>Anyway, now I understand why ProcessNewTrans takes so long if called from LoadNewTrans.
Then you might try "do ... in ..." style.
Cetin