Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum number of parameters in a method of a class
Message
 
 
À
22/10/2015 07:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01626276
Message ID:
01626318
Vues:
69
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform