Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing to NULL
Message
From
23/07/2007 19:41:29
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01243011
Message ID:
01243036
Views:
30
>>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.

How so?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform