a very stupid question but it's driving me nuts.
I want to update a field in a dbf.
The field name is defined in an array.
Code: Select all
#define DB_DBF 1
#define DB_FLD 2
LOCAL aDbf := {;
{ "dbf_1", "fiel_name_1" },;
{ "dbf_2", "fiel_name_2" },;
...
{ "dbf_n", "fiel_name_n" },;
}
Code: Select all
use ( aDbf[n][DB_DBF] ) shared alias wrk new
Code: Select all
wrk->&aDbf[n][DB_FLD] := uVal
So many years clippering but stumbling over such stupidity.
Sorry for bothering you.
Regards,
Detlef