FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour set column
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
set column
Posted: Tue Nov 16, 2021 12:12 PM
Nages ,
I ask on this topic How select the column to print
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40956&sid=487478362ab4a54540a59f1b0e59eb8f&sid=487478362ab4a54540a59f1b0e59eb8f#p245511
the problem is I have a Xbrowse with :SetMultiSelectCol() and on the column acols are not this column of checkbox

I explain you
I have an xbrowse with some buttons below
when I press "print" a small window opens where the user can set the type of printing (horizontal or vertical) and can press a button to select the columns to be printed



when the user presses to select the columns, a dialog opens OptionPrint(oBrw) that you see with the list of columns

BITMAP "PRINT_CONFIG" LEFT;
ACTION ( aColumns:= OptionPrint(oBrw),;
cSave := oBrw:SaveState(),;
oBrw:ReArrangeCols( aColumns ) )



Note that the first column is the checkbox and the others are the columns that are in the main xbrowse
when the user has selected the columns and confirm it I return to the report option dialog and return a content to acolumns

ACTION ( aCols := {}, ;
AEval( oBrw:aArrayData, { |a| If( a[ 3 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ;
oDlgOptions:end( IDOK ) )

...

IF oDlgOptions:nresult == IDOK
return aCols
ENDIF

return NIL


everything works fine but my concern is that if the user does not click on the first column (checkbox) then he prints the FALSE value for that column


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