Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avg function
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01026694
Message ID:
01026757
Vues:
15
>This goes back to dBase days. All they had was parameters() and it always returns the number of args sent to the LAST UDF call. It also fails miserably in an interrupt driven GUI environment. You call a UDF via on OKL and bang parameters() changes rather inexplicably from the function's perspective. A truly odd implementation if ever there was.
>
>At some point, I don't remember exactly when, FoxPro added the much more useful pcount() function, which always returns the number of arguments send to the currently executing function.

The PCOUNT() function has been added in Fox 2.6 and is marked as "For dBASE compatibility only" in the help under "What's New Since FoxPro 2.5".
I'm using it exclusively because of shorcommings of PARAMETERS() function you outlined above.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform