Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I test for empty cursor
Message
De
28/09/2007 12:28:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01257479
Message ID:
01257480
Vues:
20
>How do Determine if a cursor is empty after doing select statement. The following is not working:
>
>
>			Select crsprod, crsitemcode, sum(crsrequestamt) as inreq, sum(crsaccptamt) as whsaccpt, crsdelivertype, Count(*) as duplicate From crs_grid1 ;
>			  	Group By  crsprod, crsitemcode, crsdelivertype HAVING duplicate > 1 AND crsdelivertype > 1 INTO CURSOR crs_find_dup
>			IF isnull('crs_find_dup')
>				MESSAGEBOX('empty cursor',0,'')
>			ELSE
>				MESSAGEBOX('not empty cursor',0,'')
>			ENDIF 	
>
>
>thanks
>Nick

After your SELECT, check _TALLY=0.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform