Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How about more than 27 parameters?
Message
 
 
À
25/05/2001 07:39:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00511406
Message ID:
00511407
Vues:
20
Hi!

Create an obeject and add a properties to it. Than pass a single object as a parameter. Object in VFP could be used as a structure. Example:

oo = createobject("Relation") && the most lightweight class
oo.AddProperty('Param1',Param1Value)
oo.AddProperty('Param2',Param2Value)
...
Resultoo = MyFunction(oo)

Note that a result of the function could be also the object. More, object can contain quite a complex structure, such as arrays, child objects etc.

HTH.

>Hi
>How to resolve the problem of passing more than 17 parameters to a function?
>
>
>Thank you
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform