Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undefined number of parameters
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00701718
Message ID:
00702169
Views:
15
Hi!

You're correct! I used PARAMETERS() function more after Fox Pro 2.0 :)
And in VFP I actually do not use this approach much - I just checking if parameter is not logical false to see if it is passed (does not apply in this case though...)

>Vlad,
>
>Should use PCOUNT() rather than PARAMETERS() as PCOUNT is for the curretn routine while PARAMETERS is for the last called routine which may not be the one you are in.
>
>
>>Hi!
>>
>>put "lparameters param1,.... Paran32" - up to 32 parameters - at start of the procedure. Then use parameters() function to determine what is passed.
>>
>>>Hi all,
>>>
>>>How can I write a function (as the min or max functions) with undefined number of parameters?
>>>
>>>Thanks for any help
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