Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simple way to call a function in a multi-routine prg?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01250514
Message ID:
01250593
Views:
12
Hi Mark,

> All I want to do is invoke a function within a PRG file and get a value back.

VFP doesn't support specifying a program file in a function call. Function calls and procedure calls are very different in VFP. Function calls are slower, take more resources and use the cache in a different way than prgs. In your case, I'd add a dispatcher at the beginning of each PRG that receives a function identifier and parameters. In a DO CASE statement it could call the function and return the result in the second parameter.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform