Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pcount()
Message
From
19/02/2003 17:18:38
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00754996
Message ID:
00755240
Views:
8
Thanks for the suggestion. Vartype() works just as good and I don't have to remember the if statement each time I subclass.


>>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.
>
>When your method receives no parameters, it still creates a tcParm variable with the value .F., so DODEFAULT(tcParm) is equivalent to DODEFAULT(.F.).
>
>You could code around this, like:
>
IF PCOUNT() = 0
>    DODEFAULT()
>ELSE
>    DODEFAULT(tcParm)
>ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform