xbrowse report group

xbrowse report group

Postby Silvio.Falconi » Mon Apr 29, 2024 4: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: Select all  Expand view

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
 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests