MyArray:={ {'campo1', 30}, {'campo2', 50}}
for n = 1 to len(MyArray)
// How make it ?
// #define MyArray[n][1] MyArray[n][2]
next n
msginfo(campo2) // need return 50
i maked it
// it´s OK more is define campo2 as 50 only inside this function when i try msginfo(campo2) in other function
// give me erro variable no exist.
&( " "+Alltrim(MyArray[n][1]) +" := " + Alltrim(str(MyArray[n][1])) )
i try make it too.
&( "Public "+Alltrim(MyArray[n][1]) +" := " + Alltrim(str(MyArray[n][1])) )
More give me erro.
Someone can help ?
thanks