Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximum number of parameters in a method of a class
Message
 
 
To
22/10/2015 07:11:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01626276
Message ID:
01626318
Views:
67
>In this particular case it's not practical as it is an old very long and complex code that is eventually being re-written into .NET dll.
>
>So what is the big deal? You pass a parameter object instead and at the top of the method, right after the LPARAMETERS startement, you unpack the properties of the object into the same variables that used to be passed. No other changes required...

Yes, that may work. There are a couple of methods like this, though, and one method calls another with the similar name passing most parameters again. It means all references will have to be changed to a new way.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform