Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if record found in scan
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00770498
Message ID:
00770501
Vues:
10
>I have the following code that has nested scans:
>
>
>SELECT lv_x_emp_itc
>SCAN
>	DO CASE
>	
>		CASE lv_x_emp_itc.upd_status == 'A' 	&& add
>		
>		
>		CASE lv_x_emp_itc.upd_status == 'C'		&& change
>			SELECT rv_udfield
>			SCAN FOR rv_udfield.ssno == lv_x_emp_itc.ssno
>			
>			--------->>>>??? how do I know if my find was successful
>
>			ENDSCAN
>				
>		CASE lv_x_emp_itc.upd_status == 'D' 	&& delete			
>			SELECT rv_udfield
>			SCAN FOR rv_udfield.ssno == lv_x_emp_itc.ssno
>			
>				--------->>>> ??? how do I know if my find was successful
>			
>			ENDSCAN
>	ENDCASE
>ENDSCAN
>ENDWITH
>
>
>
>How can I determine if my second scan has found the record sucessfully. I can't use found() function so what do I use or look for.
>
>Thanks
>Nick Patel

If you don't have an Index set, try LOCATE.

Tracy
Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform