Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you see of a field if EMPTY.
Message
De
25/10/2000 12:24:29
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
25/10/2000 10:05:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00434009
Message ID:
00434134
Vues:
17
Robert,

To understand the difference between EMPTY(), ISBLANK(), and ISNULL() please run the following little program and look at the results.
*!* "Is there any function that can distinguish between 
*!* the zero and the apparently blank entry?"

*!* Only ISBLANK() can distinguish between 
*!* zero and "never entered" in a numeric field.

CREATE CURSOR Dummy ;
    (nDummy N NULL, nValOfDummy N NULL, lISBlank l, lISNull l, lEmpty l)
APPEND BLANK
REPLACE nValOfDummy WITH nDummy, ;
    lIsBlank WITH IsBlank(nDummy), ;
    lIsNull WITH ISNULL(nDummy), ;
    lEmpty WITH EMPTY(nDummy)
APPEND BLANK
REPLACE nDummy WITH 0
REPLACE nValOfDummy WITH nDummy, ;
    lIsBlank WITH IsBlank(nDummy), ;
    lIsNull WITH ISNULL(nDummy), ;
    lEmpty WITH EMPTY(nDummy) 
APPEND BLANK
REPLACE nDummy WITH .NULL.
REPLACE nValOfDummy WITH nDummy, ;
    lIsBlank WITH IsBlank(nDummy), ;
    lIsNull WITH ISNULL(nDummy), ;
    lEmpty WITH EMPTY(nDummy) 

BROWSE
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform