Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of parameters
Message
De
21/05/2006 19:26:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/05/2006 17:01:33
Bruno Maddalozzo
Informatica Aziendale
Arsie, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01123849
Message ID:
01123851
Vues:
17
>Starting from VFP8, in Help->VFP System capacities, the max # of parameters in a procedure is set to 26. In previous versions (VFP7 and before) it was set to 27.
>I'm now translating a VFP7 application in VFP9 and a form, with 27 parameters in its INIT, seems to work correctly.
>Are there known problems using 27 parameters in a form/procedure with VFP9?
>
>TIA
>Bruno Maddalozzo

From the VFP 9 help: "Generally, you can pass a maximum of 26 parameters; however, in some circumstances, you can pass 27 parameters."

In any case, there are alternatives to passing so many parameters separately:
  • Pass a single parameter object - an object that has different properties.
  • Pass an array.
  • Pass a string, which contains the "parameters" separated by a suitable separator, like ";".
  • In some cases, you can pass an object reference, like "This" or "ThisForm". Then, the receiving function can access the form properties directly.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform