Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recount()*2 - only lines with data
Message
De
04/08/2003 04:19:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Recount()*2 - only lines with data
Divers
Thread ID:
00816386
Message ID:
00816386
Vues:
67
I have two cursors in my form (income1 and expenses1).
I want to check if the user entered data in ONE of them.

I used with the following syntax:
select income1
it=reccount()
select expenses1
ip=reccount()
nr=ip+it
*messagebox(alltrim(str(nr)))
if nr<1
messagebox('Please enter Income and/or Expenses!',0+16)
return
endif
The problem is that VFP counting also empty records, how can I check if at list one cursor has one line with one value (without creating new cursors by select where not empty...)?
Thanks in advance
Thank you
Chaim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform