FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse report group
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
xbrowse report group
Posted: Mon Apr 29, 2024 04:44 PM
to select the group I give the way that the end user can select the group (ngroup ) from an array aGroup on which to print and groups

Before printing I have to index on the selected group

if an archive (odbf) is online I do it normally
Code (fw): Select all Collapse
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 (fw): Select all Collapse
  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 ) ) } )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion