Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pcount()
Message
De
19/02/2003 17:18:38
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00754996
Message ID:
00755240
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform