Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two functions with the same name
Message
 
 
To
20/07/2006 12:22:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01138123
Message ID:
01138127
Views:
11
>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform