To All
I have searched the forum and samples and can not find a syntax that works to total a specific column ( 6 ) in xBrowse. Here is my code... as you can see from the rem outs, I am struggling.
The function _BrowColor(oLbxB) just colors the rows .. and I will fix the text on the buttons
Any advise is welcome.
Rick Lipkin
Fwh 12.03

I have searched the forum and samples and can not find a syntax that works to total a specific column ( 6 ) in xBrowse. Here is my code... as you can see from the rem outs, I am struggling.
The function _BrowColor(oLbxB) just colors the rows .. and I will fix the text on the buttons
Rick Lipkin
Fwh 12.03
REDEFINE xBROWSE oLbxB ;
RECORDSET oRsBill ;
COLUMNS "BILLDATE", ;
"INVOICENUMBER", ;
"PUBLICATIONNAME", ;
"DESCRIPTION", ;
"AMOUNTDUE", ;
"BALANCE", ;
"BILLS" ;
COLSIZES 72,57,125,145,65,65,35 ;
HEADERS "BillDt", ;
"InvNumb", ;
"Publication", ;
"Description", ;
"AmtBilled", ;
"Balance", ;
"Bills" ;
ID 372 of oFld:aDialogs[2] ;
AUTOCOLS FOOTERS LINES CELL
oLbxB:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbxB:lRecordSelector := .f.
oLbxB:lHScroll := .f. // turn off horiz scroll bar
oCol := oLbxB:aCols[ 1 ]
oCol:bStrData := { |x| x := if(oRsBill:eof, ,TtoDate(oRsBill:Fields("BillDate"):Value)),;
If( Empty(x), ctod(""),x ) }
oLbxB:aCols[1]:nDataStrAlign := AL_LEFT
oLbxB:aCols[1]:nHeadStrAlign := AL_LEFT
oLbxB:aCols[6]:lTotal := .t.
oLbxB:aCols[6]:nTotal := 0 // this line also is required
/*
If !Empty( oCol := oLbxB:oCol( "Balance" ) )
oCol:nTotal := 0
oCol:lTotal := .t.
Endif
*/
oLbxB:MakeTotals()
_BrowColor(oLbxB)
oLbxB:bLDblClick := { |nRow,nCol | _BillView( "V",oRsBill,oFontB,oBtn0,oBtn1,;
oBtn2,oBtn3,oBtn4,oBtn13 ),oLbxB:SetFocus() }