Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsBlank() in SELECT SQL. Bug?
Message
De
12/09/2008 09:45:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01346127
Message ID:
01347043
Vues:
17
>>>Looks like IsBlank() does not work for numeric and logical fields. Am I missing something?
>>>
>>>
>>>CLEAR
>>>CLOSE TABLES all
>>>
>>>create TABLE c:\junk (fldBlob W, fldChar c(10), flddate D, flddt T, ;
>>>	fldg G, fldlogic L NULL,;
>>>	fldM M, fldN N(6,1) NULL,fldfloat F(6,1) NULL, fldVar Q)
>>>
>>>APPEND blank
>>>
>>>COUNT FOR ISBLANK(fldLogic) OR ISBLANK(fldN) TO ln
>>>?ln   && 1
>>>SELECT * FROM c:\junk WHERE ISBLANK(fldLogic) OR ISBLANK(fldN) INTO CURSOR tmpcurs1
>>>?_tally   && 0
>>>sele;
>>>	fldLogic, ISBLANK(fldLogic) _fldLogic, isb(fldLogic) _fldLogic1,;
>>>	fldN, ISBLANK(fldN) _fldN, ISB(fldN) _fldN1,;
>>>	fldFloat, ISBLANK(fldfloat) _fldFloat, ISB(fldfloat) _fldFloat1;
>>>	from c:\junk;
>>>	into curs tmpcrs2
>>>
>>>?ISBLANK(fldLogic), _fldLogic
>>>?ISBLANK(fldN), _fldN
>>>?ISBLANK(fldfloat), _fldFloat
>>>
>>>
>>>*---------------------------
>>>PROCEDURE isb
>>>LPARAMETERS pField
>>>RETURN ISBLANK(pField)
>>>
>>>
>>
>>a bug
>
>Do you know, whether it is documented anywhere?

I don't think so, but I remember discussions on this in the past:

Re: How do you see of a field if EMPTY. Thread #434009 Message #434081
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform