Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional parameters
Message
De
21/04/1997 13:58:43
 
 
À
21/04/1997 13:54:45
Andrew Gray
Petrolink Services Ltd
Aberdeen, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00029127
Message ID:
00029136
Vues:
33
>You could also use the Parameters() Fn. Returns the number parameters you were passed. Only more usefull than checking TYPE("") if you're expecting a logical parameter.

MyFunc(1,2,,,5)

PARAMETER tnParm1,tnParm2,tnParm3,tnParm4,tnParm5

Will PARAMETERS() be useful in this case? Maybe not.

As for the type logical, I never use it. When I need to pass a flag, I use the 1 or 0.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform