Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manupulating record fields
Message
De
13/06/1998 01:15:02
 
 
À
13/06/1998 01:06:51
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00107808
Message ID:
00107809
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform