>According to Visual FoxPro maximum capacity info I found online the maximum number of parameters per function is 26. However, I made an experiment and was able to pass 27 parameters (I got compile error trying to add 28th parameter).
>
>Would it be save to use a method in a class in a highly transactional application with 27 parameters? The method already uses 26 parameters and I have a need to add one more.
Create a object and add an array or properties to it; then pass the object. Each of the parameter is added as a property as follows:
LOCAL loParameters
loParameters = CREATEOBJECT("Empty")
ADDPROPERTY(loParameters, "MyProperty", lnMyValue)
...
loResult = MyFunction(loParameters)
Alternately, you could use an array.