I have a dbf with 10 fields but I only indicate 2 in xbrowse.
- Code: Select all Expand view
- REDEFINE XBROWSE oBrw ID 210 OF oDlg ;
ALIAS "invoices" ;
FIELDS invoices->field3, invoices->field6 ;
HEADERS "field 3", "field 6"
In that case, oBrw:aCols[oBrw:nColSel]:bOnPostEdit := {|x|x:Value := x:oEditGet:Value,oBrw:nColSel--}
does NOT save changes.
But if I define xBrowse as
- Code: Select all Expand view
- REDEFINE XBROWSE oBrw OF oDlg ID 210 AUTOCOLS ALIAS "LINEASTMP" CELL LINES
Thanks.