Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why I cannot search a NULL value ? BUG ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00824792
Message ID:
00824828
Vues:
12
Hi Jozef,

but why i need to ...

If field support NULL, VFP search null and found it.



SET NULL ON
CREATE CURSOR MyCursor ( A I )
INSERT INTO MyCursor VALUES (NULL)
INSERT INTO MyCursor VALUES (1)
INDEX ON A TAG myTag
x=NULL
? type('x') && type of x is "L"
SEEK m.x ORDER 1 && i SEARCH a logical NULL and found a numeric NULL
? found(),'null found '
LOCATE FOR A=NULL && i compare a logical NULL AND, correctly, NOT found it
? found(),' null not found '
<\pre>

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform