Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manupulating record fields
Message
From
13/06/1998 01:15:02
 
 
To
13/06/1998 01:06:51
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107808
Message ID:
00107809
Views:
24
>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
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform