Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>VFP does not have parameters array. The best you can do is to determine the number of parameters passed using parameters() or pcount() functions.
>>
>
>I just want to point out that you should always use PCOUNT(), not PARAMETERS(). PARAMETERS() is reset by any call to another (non-built-in) routine, while PCOUNT() always returns the number of parameters passed to the routine in which you call it.
>
>Tamar
(nodding) Yup. I remember the headaches caused by that behavior of PARAMETERS() funciton. Even if you tried saving that value to a variable upon entry, there was always a window of opportunity where an ON ... event would trigger and ruin things for you. Had that happen more than enough times back in the FPW and FPD days.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement