Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter array
Message
De
10/11/2011 10:00:08
 
 
À
10/11/2011 08:27:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01528475
Message ID:
01528558
Vues:
48
>>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
Fil
Voir

Click here to load this message in the networking platform