Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a function inside a specific prg file
Message
From
17/01/2001 19:17:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00464910
Message ID:
00464966
Views:
15
>The case is this: given the following piece of code...
>
>SET PROCEDURE TO LIB1, LIB2, LIB3
>
>Both files LIB1 and LIB2 have a function called X(). In normal conditions if I call the X() function the one that resides in LIB1 will be executed because was loaded first. What if I want to invoke the X() function that resides inside LIB3 given the constraint that I cannot modify the SET PROCEDURE statement to change the order of the files?
>
>Is there a way in VFP to call a function that resides inside a specific PRG program file to break the search sequence of VFP?
>
>TIA

If you need to execute it as a function (return a value),

SET PROCEDURE TO
SET PROCEDURE TO lib3, lib1, lib2

otherwise you can use Harold's method if you use it as a procedure (no return value).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform