Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you see of a field if EMPTY.
Message
 
To
25/10/2000 10:05:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00434009
Message ID:
00434035
Views:
14
>In vfp60, in my table… I want to check a field that has a data type of CURRENCY. I want to see if this field is empty or not. I have tried…
>?empty(myfld)….this returns a F…but the field seems to be empty....
>?myfld...returns nothing...
>Any ideas?

Rob,

I'm assuming that you mean that no data has been inserted into the record. In some cases you can use the ISBLANK() function to determine this. Unfortunately, with the currency data type, this doesn't apply. For example,
CREATE CURSOR Foo (Money Y, SomeNum N(8, 2))
* No records
? ISBLANK(Foo.Money) && returns .F.
? ISBLANK(Foo.SomeNum) && returns .T.
* Add a record
APPEND BLANK
? ISBLANK(Foo.Money) && returns .F.
? ISBLANK(Foo.SomeNum) && returns .T.
In both cases, the EMPTY() function returns .T.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform