Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error locating procedures with the same name
Message
 
To
08/12/1999 18:04:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00300661
Message ID:
00300736
Views:
8
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform