Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing variable cursor names and their fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01515685
Message ID:
01515730
Vues:
64
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
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform