Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two functions with the same name
Message
From
20/07/2006 12:31:17
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:
01138129
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.

Then you might try "do ... in ..." style.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform