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 Expand view
#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" },;
}
I can do
- Code: Select all Expand view
use ( aDbf[n][DB_DBF] ) shared alias wrk new
But i can not
- Code: Select all Expand view
wrk->&aDbf[n][DB_FLD] := uVal
I tried several variations. Either i get "invalid lvalue" at compile time or "&syntax error" at runtime.
So many years clippering but stumbling over such stupidity.
Sorry for bothering you.
Regards,
Detlef