Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Re: Count
Divers
Thread ID:
00100340
Message ID:
00100342
Vues:
29
>How can I count the results of a qry based on a condition.
>
>Such as count(qry.sex) for qry.sex = 'female' , if I put this in an expression it is a syntax error?

I assume you mean a SQL query. The following would work:
SELECT *;
  FROM Qry;
  WHERE Sex = 'female';
  INTO CURSOR foo
lncount = _TALLY
If not a query:
COUNT FOR Qry.Sex = 'female' TO lncount
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform