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:
01429409
Vues:
41
>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.
>
>
I don't see a problem in this particular piece of code. Do you have grid Active while doing this scan? Also, do you have any timers?

Perhaps you can show a bit more code here.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform