Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing to NULL
Message
 
 
À
23/07/2007 19:36:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01243011
Message ID:
01243033
Vues:
32
>If that works for you, that's fine, but I find your example extremely hard to follow its intent.
>
>
>IF (VARTYPE(OLDVAL(FIELD(i))<>VARTYPE(EVALUATE(FIELD(i)))
>  *
>  * To/From .NULL.
>  *
>ELSE
>  *
>  * Type stays the same
>  *
>  IF ISNULL(EVALUATE(FIELD(i))) OR (OLDVAL(EVALUATE(FIELD(i))==EVALUATE(FIELD(i)))
>    *
>    * same values
>    *
>  ELSE
>    *
>    * different values
>    *
>  ENDIF
>ENDIF
>
>All in all, they're really the same thing.

No, your code is not the same as Dmitry's and it doesn't test all conditions.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform