Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP9 NULL values
Message
De
06/04/2005 15:29:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01001888
Message ID:
01002057
Vues:
19
For me _TALLY always equals 0 whenever there is no matching records, so it must be caused by one of your settings. However, if you really don't care about the result, and only need to find the number of hits, if any at all, you can use another solution:
SELECT MAX(draw.drawlstchg) FROM draw ;
  WHERE draw.obligor + draw.obligation + draw.unit = ;
  m.obligor + m.obligation + m.unit ;
  TO SCREEN NOCONSOLE
IF _TALLY....
>The problem is the following code. In VFP6 it returns _tally = 0, in VFP9 it returns _tally = 1 with .NULL. in dchg[1]. What can I do about the _tally? There was not a match found in the DRAW but _TALLY returns a 1 and puts .NULL. in the array. Why does this happen and what can I do about it?
>
>< _tally > 0
> m.dlstchg = dchg[1]
>ELSE
> pre>
>SELECT MAX(draw.drawlstchg) FROM draw ;
> WHERE draw.obligor + draw.obligation + draw.unit = ;
> m.obligor + m.obligation + m.unit ;
> INTO ARRAY dchg
>IFm.dlstchg = { / / }
>ENDIF
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform