>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.)
>
Definately workable, but I'd switch the parameter datatype to something different from boolean and check type() or better iif(vartype()==...., , )
Personal preference - bordering on "beauty in the eye of beholder"
and no attempt to start another long discussion ;-)