damianodec wrote:excuse me,
i'm starting to use xbrowse
I have customer.dbf
can someone help me put the total of INVOICE field to the bottom ?
thanks
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-11 BOLD
DEFINE DIALOG oDlg SIZE 760,440 FONT oFont ;
TITLE 'Xbrowse Color Gradients'
@ 10,10 XBROWSE oBrw ;
COLUMNS "codice", "ragsoc", "Saldo", "kgtota", "legale" ;
OF oDlg ;
SIZE 360,180 PIXEL ;
FOOTERS LINES CELL
oBrw:bPopUp := { |o| ColMenu( o ) }
AEval( oBrw:aCols, { |o| o:cToolTip := { 'Column :' + CRLF + o:cHeader, 'ToolTip' } } )
if !Empty( oCol := oBrw:oCol( "kgtota" ) )
oCol:nTotal := 0
oCol:lTotal := .t.
oCol:nEditType := EDIT_GET
endif
oBrw:MakeTotals()
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
oCol:nTotal := 0
oCol:lTotal := .t.
oCol:nFooterType := AGGR_SUM
#INCLUDE "FiveWin.ch"
#INCLUDE "xbrowse.ch"
FUNCTION xbrows()
Local oDbf
local oDlg, oBrw, oCol, cAlias := cGetNewAlias( "UTILE1" )
local oBr, oFont, cfunc
cFunc := ProcName( 0 )
USE UTILE1 NEW ALIAS (cAlias) SHARED VIA "DBFCDX"
SET ORDER TO TAG FIRST
GO TOP
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-11 BOLD
DEFINE DIALOG oDlg SIZE 760,440 FONT oFont ;
TITLE 'Xbrowse Color Gradients'
@ 10,10 XBROWSE oBrw ;
COLUMNS "codice", "ragsoc", "Saldo", "kgtota", "legale" ;
HEADERS "a", "b", "c", "D", "e" ;
OF oDlg ;
SIZE 360,180 PIXEL ALIAS cAlias;
AUTOSORT FOOTERS LINES CELL
if !Empty( oCol := oBrw:oCol( "kgtota" ) )
oCol:nFooterType := AGGR_SUM
oCol:nEditType := EDIT_GET
endif
oBrw:MakeTotals()
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 42 guests