Jay,
The proper syntax is
IF TYPE('lcExistingValue') = 'C' AND !EMPTY(lcExistingValue)
HTH
-Dan
>Getting "Function argument value, type, or count is invalid" error on this line if lcExistingValue is .F. when getting here. I still can't figure out what is the best way to check for the existence of a variable and whether it has a value.
>
> IF TYPE(lcExistingValue) = 'C' AND !EMPTY(lcExistingValue)
>