Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Undefined number of parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00701718
Message ID:
00701727
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform