Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error locating procedures with the same name
Message
From
08/12/1999 23:33:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00300661
Message ID:
00300777
Views:
16
>>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.


Thanks, but i´m searching a way to not change several hundreads of old lines of code.

By the way, is the adress WWW.FOXWIKI.COM correct ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform