Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error locating procedures with the same name
Message
 
À
08/12/1999 18:04:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00300661
Message ID:
00300736
Vues:
7
>I have a system with almost 30mb of source code. Most of them have several years. Its work fine with the diferents version of Foxpro and Vfoxpro, until sp3 (Spanish version). I have many procedures with the same name in differents .prg . When a call to one of them is execute, VFP run the procedure but in a different prg !
>
>Any suggestions ?

The first suggestion is to stop giving different procedures the same name. Procedures are not polymorphic like methods are. If you moved your procedures to be methods of a class then the reference would remove any abiguity from the one you meant to run;
Do MyProc && Ouclkd be in many places with the same name

MyObject.MyProc() && Is in ONLY one place
If you want more information about how VFP finds a procedure there is a page at the Foxwiki.com that explains the entire searching order.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform