Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How about more than 27 parameters?
Message
From
25/05/2001 07:44:07
 
 
To
25/05/2001 07:39:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00511406
Message ID:
00511407
Views:
19
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform