Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is .NULL.= .NULL.?
Message
 
 
À
28/07/2000 14:31:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00398289
Message ID:
00398295
Vues:
12
>Hi all:
>I have a program that searches for a [CODENUMBER] and then checks the value of the [BARCODE] field. I want some action taken if the field is .NULL. I know the field is .NULL. because that is how it shows in the field and i can see that value in a debug window. However, the line
>If BARCODE = .NULL.
>doesn't evaluate as true. Why?
>
>Also, this two empty strings:
>" " and "" aren't the same? Why?
>
>Thank you in advance.
>
>Ulises



You cannot compare Null values because they are equal to the absence of any value.

ISNULL function will return .T. if argument value is null.

If ISNULL(BARCODE)

For details see topic 'Handling Null Values' in Foxpro Help.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform