>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