how can i access the field names of a certain database file using arrays? for example. i have 10 fields, and i want to place data on each field.
e.g.
instead of:
replace fieldname1 with data
replace fieldname2 with data
replace fieldname3 with data
replace fieldname4 with data
...
replace fieldname10 with data
i want my code to be like this;
for x:=1 to 10
replace fieldname[x] with data
next
but it doesn't work. I have already used AFIELDS/FIELDNAME functions. need your help guys. i will very much appreciate if you can help me. tnx.
e.g.
instead of:
replace fieldname1 with data
replace fieldname2 with data
replace fieldname3 with data
replace fieldname4 with data
...
replace fieldname10 with data
i want my code to be like this;
for x:=1 to 10
replace fieldname[x] with data
next
but it doesn't work. I have already used AFIELDS/FIELDNAME functions. need your help guys. i will very much appreciate if you can help me. tnx.