Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEVER compare values with EMPTY()!!!! SERIOUS Bug!
Message
De
21/09/2001 09:50:02
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Allemagne
 
 
À
21/09/2001 06:23:38
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00559148
Message ID:
00559223
Vues:
16
>>Empty is meant for character values it seems!
>
>Not according to Help.
>
>In any event, EMPTY() was usefull for testing for the existence of an optional parameter (ie. a value other than 0 or .F.) ... but obviously not in this type of situation.


Hmm, I suspect that the help file also suggests it works with numbers but the fact that lnValue = 0 provides result inconsistent with empty(lnValue) suggests otherwise to me!

I rarely use the empty command on parameter because it makes more sense to use VARTYPE or TYPE, that way you check whether it was both passed and passed correctly at the same time.
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform