Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max number of parameters
Message
 
 
To
29/06/2021 15:47:35
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01681616
Message ID:
01681633
Views:
39
>>>I was getting an error and I sensed that the reason was the extra parameter I added. You confirmed it.
>
>I hesitate to mention performance after some recent threads(!) but passing lots of/large parameters definitely carries a performance hit. The other option is PRIVATE variables or parameter objects in the calling code: you can have as many as you need that are visible to called functions without the performance impact.

I implemented a parameter object and it replaces the 28 parameters very nicely.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform