Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN LOOP Goofing up
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01429392
Message ID:
01429408
Vues:
54
Yes, both tables are ordered. I was doig a SEEK() command with an IF condition.

Here's partial code:

As soon as I SELECT the BATCHN table, the record in the WORK table returns to the record it had been on, although I specifically saw that it was on the second record on the second pass (loop).
WITH ThisForm
	SELECT WORK
	SCAN	&& FOR WORK.Order_Num = tmpOrders.Order_num
		SELECT BatchN
		lcOrderNo =Work.Order_Num
		lcPart_Num=Work.Part_Num
			
		*SELECT BATCHN
		IF !SEEK(lcOrderNo) && 1st time in to the BATCHN table..
			* If there is no record yet, make a new one.
			APPEND BLANK
			* Put in the data for the first line item.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform