Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two functions with the same name
Message
 
 
À
20/07/2006 12:22:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01138123
Message ID:
01138127
Vues:
12
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform