Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple question about Valid method
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01006352
Message ID:
01006355
Vues:
25
>Hi everybody,
>
>Valid method can return either logical or numerical. How can I test
>
>if dodefault()
>
>Thanks in advance.
>
>I don't like
>
>if inlist( transform(dodefaut(),'.f.','0')) && failure

I can do it
#define lFailure iif(vartype(m.luReturn)="N", m.luReturn = 0, not m.luReturn)

but I don't like it either...

Is there a third option?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform