Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace
Message
De
03/02/2006 14:56:35
 
 
À
03/02/2006 14:42:57
Todd Brown
Teachers Credit Union
Granger, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01093494
Message ID:
01093500
Vues:
23
>I want to use a replace command where the REPLACE fieldname WITH 1 where the fieldname is a memory variable. I have 50 fields to replace base off of the information is 1 field.
>
>value in the fisrt field 10
>
>REPLACE pcycle10 with 1
>
>value is 11
>
>REPLACE pcycle11 with 1
>
>I need the pcycle11 to be a memory variable. I have been unsucessful so far.
>
>Thanks
>Todd

this should work...
CREATE CURSOR ed (pcycle10 N(10,0),pcycle11 N(10,0))
m.lcFroot="pcycle"
APPEND BLANK
FOR m.lncount=10 TO 11
	m.lcFname=m.lcFRoot+TRANSFORM(m.lnCount)
	replace (m.lcFname) WITH 1
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform