Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter Limit in FLL ?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00463814
Message ID:
00463973
Views:
13
Hi Christopher,

>Is there a limit to the number of parameters you can pass to a function defined in a FLL?

Yes. Visual FoxPro can't handle more than 27 parameters for a function. This applies to UDFs, methods, FLL functions and API functions. It does, however, not apply to calling procedures with DO command. Nonetheless, this behavior is not consistent. For instance, INLIST() only accepts 26 parameters before raising an error.

In general, I would avoid reaching this limit at all and rather use a parameter object to pass parameters to a function when the number of parameters is possibly very high or variable.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform