Before printing I have to index on the selected group
if an archive (odbf) is online I do it normally
Code: Select all | Expand
oDbf:setorder(nGroup)
oDbf:gotop()
oBrw:oDbf:SetOrder(nGroup)
I assume that the oBrw is open in autosort and I create the agroup array and field array doing it this way
Code: Select all | Expand
AEval( oBrw:aCols, { |o| If( o:lHide .or. Empty( o:cSortOrder ),, AAdd( aGroup, o:cCbxItem ) ) } )
AEval( oBrw:aCols, { |o| If( o:lHide .or. Empty( o:cSortOrder ),, AAdd( acampi, o:cExpr ) ) } )