Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pcount()
Message
From
19/02/2003 12:34:59
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
19/02/2003 12:22:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00754996
Message ID:
00755032
Views:
9
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 = 0
>>
>>
>>this.mysubmethod()
>>
>>* mysubmethod
>>lparameters tcParm
>>dodefault(tcParm)
>>
>>* mymethod
>>lparameters tcParm
>>? pcount() && this = 1
>>
>>
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform