Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pcount()
Message
 
À
19/02/2003 11:54:39
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:
00755036
Vues:
14
>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform