Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters
Message
De
12/03/2003 12:21:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00764809
Message ID:
00764947
Vues:
26
The other question is why would the limit have been set to 26 in the first place? I wonder if it's just coincidence that 26 just happens to be the number of letters in the English alphabet.
One thing to be sure, the greater the number of parameters to pass, the likelyhood of missing one or putting them in the incorrect sequence is greater (one of the problems I constantly had back in school with those ScanTron forms). I was never really happy with the solution of passing an array -- somehow it was too easy to get the indicies wrong. Although a series of #DEFINEs would work, you had to duplicate them in every program file back in FPW (due to a lack of #INCLUDE). Although in VFP this limitation doesn't exist, my personal preference has been to define a custom class (as typically the large number of parameters was because I was passing some sort of structured data).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform