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.comICQ #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.