Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace
Message
De
03/02/2006 21:09:02
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
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:
01093611
Vues:
26
>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

lcCmd = ""
FOR x = 1 to 50
lcCmd = lcCmd + "pcycle" + transform(m.x) + " with 1, "
ENDFOR x
lcCmd = LEFT(m.lcCmd,LEN(m.lcCmd)-1)
REPLACE &lcCmd. IN yourtable
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform