Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you see of a field if EMPTY.
Message
 
À
25/10/2000 10:05:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00434009
Message ID:
00434035
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform