How to do a DCSAY GET of all fields of a DBF
Posted: Sat Aug 31, 2019 9:25 am
Ho can I do the get for all Fields
I have all the Fields in aStru array.
I have the Field Name correct. But the &mFieldName does not work.
Thank you
Alexandre
Code: Select all
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_TEXT OBJECT oStaticEditPage SIZE mWinCol,mWinRow ;
// TAB1
@ 0,0 DCTABPAGE oTabPage1 CAPTION 'ACTION' SIZE mWinCol-0,mWinRow-0 PREOFFSET 0 POSTOFFSET 90 PARENT oStaticEditPage ;
GOTFOCUS {|| DC_GetRefresh(oTabPage1) , ;
SetAppFocus(oGet1) } ;
DCSETPARENT TO oTabPage1
DCSETRESIZE TO DCGUI_RESIZE_REPOSONLY_Y
row := 5
col := 5
FOR i := 1 TO nMax
mFieldName := ALLTRIM(aStru[i,1])
@ row++,col DCSAY mFieldName GET &mFieldName PICTURE "@!"
NEXT
DCSETPARENT TO
DCSETRESIZE TO
I have the Field Name correct. But the &mFieldName does not work.
Thank you
Alexandre