Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace
Message
 
To
03/02/2006 14:42:57
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01093494
Message ID:
01093496
Views:
21
Hi Todd,
Try this
FOR m.myvalue = 10 TO 11
    m.myvar = [pcycle]+ALLTRIM(STR(m.myvalue))
    REPLACE (m.myvar) WITH 1
NEXT
HTH

>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
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform