Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing to NULL
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01243011
Message ID:
01243033
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform