>I wish to find a way to do the following task. Please help.
>
>I have a record with 20 fields, from f_d1 to f_d20. How can I write a code so that I could replace the fields with a new data?
>
>Example, I want to replace f_d1 to fd20 with a today's date for f_d1 and an increament of one month for f_d2 and so on.
>
>How can I do that? Please show me with codes, thank you.
for i=1 to 20
lcFieldName = "f_d" + alltrim(str(i))
replace &lcFieldName with Date() + i
endfor