Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing variable cursor names and their fields
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01515685
Message ID:
01515735
Views:
44
Hi Hugo,

I got rid of those a while ago. I had the intention of doing things a different way, without using INSERT, but changed my mind and forgot to remove the code before posting.

Thanks for the heads up anyway, Hugo,

Cecil

>I think you can get rid of both the scan and the seek:
FOR nMonth = 1 TO 12
	* Get the Carrier ID (Matches GrpID and PlanKey) 
	* and the Benefit Name (Matches PlanKey).
	lcCursor	= "tmpNearly" + PADL(nMonth, 2, "0")
	
	UPDATE (lcCursor) SET CarrID = G.Carr, Benefit = G.CovDesc8 ;
		FROM GrpsPlansCarrs G WHERE &lcCursor..GrpID + &lcCursor..PlanKey = g.Full_Key

	* You should replace g.Full_Key to whatever the key is on GrpsPlansCarrs 	
ENDFOR
Previous
Reply
Map
View

Click here to load this message in the networking platform