OK, I stand corrected. It works the same in 7.0. Strange I have not run into this before. Pcount() in this context seems to be useless. If I pass nothing to a method that passes an empty parameter down the tree, it seems it should still be passing nothing. I will go back to checking the vartype() of the parameter.
Thanks both for your help.
>>Hi All
>>
>>I am seeing different behavior with pcound(). If I call a method with a parameter directly all works well. If I subclass the method and put in a dodefault(), pcound() returns a 1 even though I don't pass a parameter. For example:
>>
>>
>>this.mymethod()
>>
>>* mymethod
>>lparameters tcParm
>>? pcount()
>>
>>
>>this.mysubmethod()
>>
>>* mysubmethod
>>lparameters tcParm
>>dodefault(tcParm)
>>
>>* mymethod
>>lparameters tcParm
>>? pcount()
>>
>>
>
>James,
>I can't see anything wrong with it.
>In subclass you do pass a parameter so it should be 1.
>Calling your primary class as myMethod(SomeParameter) would also return 1
>Cetin