I am having extraordinary difficulty with this issue! Any help you can provide will be very much appreciated.
I come from MS Access and SAS, and I can't seem to get a handle on this.
I have a variable: nRate.
I want to check to see is nRate is null or empty. In MS Access, I would say:
if nz(nRate,""
="" then
blahblahblah
end if
This way, if nRate is null, it is converted to an empty string and the equation returns true. If it already is an empty string, no conversion takes place, and the equation still returns true. This always worked well for me.
In FoxPro, apparently this is a fixed-length database?? So, I have tried:
if nvl(nRate,""
="" then...
if alltrim(nvl(nRate,""
="" then...
if nvl(nRate,"~~"
="~~" then...(Using "~~" as a garbage value, don't know why, just thought I'd try it...)
if alltrim(nvl(nRate,"~~"
="~~" then...
Nothing seems to to work for me.
Any ideas?
Thanking you inadvance...
-Mike
I come from MS Access and SAS, and I can't seem to get a handle on this.
I have a variable: nRate.
I want to check to see is nRate is null or empty. In MS Access, I would say:
if nz(nRate,""
blahblahblah
end if
This way, if nRate is null, it is converted to an empty string and the equation returns true. If it already is an empty string, no conversion takes place, and the equation still returns true. This always worked well for me.
In FoxPro, apparently this is a fixed-length database?? So, I have tried:
if nvl(nRate,""
if alltrim(nvl(nRate,""
if nvl(nRate,"~~"
if alltrim(nvl(nRate,"~~"
Nothing seems to to work for me.
Any ideas?
Thanking you inadvance...
-Mike