Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pcount()
Message
 
To
19/02/2003 11:54:39
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00754996
Message ID:
00755036
Views:
11
>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
Next
Reply
Map
View

Click here to load this message in the networking platform