Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ISBLANK and SELECT SQL
Message
De
18/06/2003 11:55:09
 
 
À
18/06/2003 11:37:21
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00801174
Message ID:
00801212
Vues:
12
Agnes,

My tests with VFP6 show that *none* the syntaxes below work correctly. They retrieve the isblank() or empty() value from the current record at the time the query begins. IOW, if you are sitting on the 1st record when you run the query, and it is empty() on that field, it will show that all the records are empty.

But if you leave off the table name (isblank(cField)), it works correctly.

>Hi Jim,
>
>>I'm not sure I see what the problem is...
>
>Lets see if I can make it more clear.
>The problem is within a larger view with 5 source cursors. I guess it is to tricky to understand.
>My example reproduces the problem.
>
>It happens only with the combination of ISBLANK() and the use of AS in the FROM (or JOIN) clause
>
>SELECT;
> ISBLANK(Cur1.cField);
> FROM aTable AS Cur1
>
>
>Code like
>
>SELECT;
> EMPTY(aTable.cField);
> FROM aTable
>
>or, for example
>
>SELECT;
> EMPTY(Cur1.cField);
> FROM aTable AS Cur1
>
>works perfectly.
>
>>
>>I wouldn't expect CUR1 to be 'available' until the result set is to be written. ...
>Cur1 is a temporary Alias, available only within the SELECT SQL.
>
>> ... Don't you really want aTable.cField in the field list?
>? I dont understand this question.
>
>
>Agnes
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform