Before printing I have to index on the selected group
if an archive (odbf) is online I do it normally
- Code: Select all Expand view RUN
oDbf:setorder(nGroup)
oDbf:gotop()
oBrw:oDbf:SetOrder(nGroup)
but if I have an array how can I sort?
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 view RUN
- 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 ) ) } )