>>Is there a simple way (without having to check all the datatypes) to get the equivalent empty value for a variable. For example
>>FOO(12) ------------> 0
>>FOO("abcd") --------> ""
>>FOO(DATE()) --------> { }
>>FOO(DATETIME()) ----> { :}
>>etc.
>>
>>I can write FOO if I need to. Just wondering if there is already a feature in the language.
>>
>>Thanks......Rich
>
>lvEmptyValue = CAST("" as myType)
>
>See
Re: Empty this... Thread #
1304137 Message #
1304192 for the best answer.
Shoot......I forgot about losing the VFP version when you do a preview of the message. This will be in VFP 8 so CAST/ICASE are unavailable.
Thanks for responding