Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undefined number of parameters
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00701718
Message ID:
00701727
Views:
19
>Hi all,
>
>How can I write a function (as the min or max functions) with undefined number of parameters?
>
>Thanks for any help

To calculate max/min I use the approach that you may find useful. I use one parameter only preformatted as string having delimiters to separate numbers, like:
?ymax("3,4,5,6,7,8,9")
Then in ymax function I format them as needed to use the regular max() function.

Additional advantage of this approach is that you can use this function independently, say, in bat file when only characters are recognized as parameters.
Previous
Reply
Map
View

Click here to load this message in the networking platform