>>You can do that indirectly without using pcount() or parameters() (I seldom use them). When you don't pass a parameter, by "default" it is boolean false or simply empty() - in VFP .F. is empty.
>>Thus you could do this:
>>
>>
>>parameters tuSomeParameter
>>*tuSomeParameter = evl(m.tuSomeParameter, < valueYouwantAsDeafult >)
>>tuSomeParameter = evl(m.tuSomeParameter, .null.)
>>
>
>That is not the same. If a boolean .F. value is passed you are converting that to a NULL while it should not. The only solution is to use PCOUNT() or PARAMETERS() in order to find out whether the variable has been passed or simply contains a .F.
>
>Walter,
I don't think someone using VFP would ever want to pass a boolean where .null. as chosen default value.