>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)