Xbrowser Footer calc
Posted: Tue Mar 24, 2015 9:01 am
Dear Rao,
i modify an old app and I wish add the footer on a xbrowse
but I wish calc the total if the type (first column is "E" or "U" and the calc must be all E - all E
How I must make it?
test.prg
i modify an old app and I wish add the footer on a xbrowse
but I wish calc the total if the type (first column is "E" or "U" and the calc must be all E - all E
How I must make it?
test.prg
- Code: Select all Expand view
- #include"fivewin.ch"
function test()
Local oDlg,oBrw
Local adata:={{"U",15.00,0.00,15.00 },;
{"E",148.76,31.24,180.00 },;
{"U",16.49,3.46,19.95 }}
DEFINE FONT oFont NAME 'TAHOMA' SIZE 0,-12
DEFINE DIALOG oDlg SIZE 700,300 PIXEL FONT oFont ;
TITLE 'Footer totals'
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
AUTOCOLS ;
HEADERS 'Type', 'Import', 'Iva', 'Total' ;
ARRAY aData CELL LINES NOBORDER FASTEDIT FOOTERS
oBrw:nStretchCol := 1
oBrw:MakeTotals()
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
Return nil