Page 1 of 1

:MakeTotals() and picture

Posted: Tue Apr 15, 2025 7:35 am
by damianodec
Hi,
thisi is my xbrowse
Image
this is code

Code: Select all | Expand

	@ 40,10 XBROWSE oBrw SIZE -10,-50 PIXEL ;
	  RECORDSET oRs ;
	  COLUMNS "cdcli", "rascl", "totale",  "pezzi" ;
	  HEADERS "CLIENTE", "RAGIONE SOCIALE", "TOTALE EURO", "TOTALE PEZZI" ;
	  PICTURE NIL,NIL, "@ZE 99,999,999.99", "@ZE 99999,999.999" ;
	  FOOTERS ;
	  OF oDlg2	  
	
	oBrw:nMarqueeStyle       := MARQSTYLE_HIGHLROW
	oBrw:nColDividerStyle    := LINESTYLE_BLACK
	oBrw:nRowDividerStyle    := LINESTYLE_BLACK
	oBrw:lColDividerComplete := .T. 
	oBrw:lRecordSelector     := .t.
	oBrw:lHScroll            := .T.
	oBrw:lVScroll            := .T.
	oBrw:lExcelCellWise 	 := .t.
	
	oBrw:bClrSelFocus = { || { 16777215, 15512898 } }   
	oBrw:bClrSel = { || { 16777215, 15512898 } }
	oBrw:bClrStd := {|| {CLR_BLACK, iif( oBrw:Keyno() % 2 = 0, CLR_SFBRWP, CLR_SFBRWD  ) } }
	
    oBrw:CreateFromCode()
	
    WITH OBJECT oBrw
		:aCols[03]:nFooterType := AGGR_SUM
		:aCols[04]:nFooterType := AGGR_SUM	
		:MakeTotals()
	END		

why does the first column of totals have that picture ?

I Use FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.00 for Win32

Re: :MakeTotals() and picture

Posted: Tue Apr 15, 2025 11:50 am
by acuellar
damianodec

Maybe

Code: Select all | Expand

'
   :aCols[03]:cEditPicture:="99,999,999.99"

Re: :MakeTotals() and picture

Posted: Tue Apr 15, 2025 12:03 pm
by damianodec
No, totel is 1.351.282,1200000000

I'd like total like the detail with two decimals

Re: :MakeTotals() and picture

Posted: Tue Apr 15, 2025 1:25 pm
by karinha

Re: :MakeTotals() and picture

Posted: Tue Apr 15, 2025 5:56 pm
by cmsoft
Damian, el separador de miles es la , y el de decimales es el . por default
Tienes una configuracion diferente?

Damian, the thousands separator is , and the decimal separator is . by default.
Do you have a different configuration?

Re: :MakeTotals() and picture

Posted: Wed Apr 16, 2025 4:56 am
by cnavarro
In addition to what Cesar suggests you should check, remember that in each column object there is the data :cFooterPicture

Re: :MakeTotals() and picture

Posted: Mon May 12, 2025 9:41 am
by damianodec
Hi,
I still have this problem.
the problem is only in first total.
Why?

Re: :MakeTotals() and picture

Posted: Mon May 12, 2025 10:29 am
by cnavarro
viewtopic.php?p=278990#p278990
Change characters of picture

Re: :MakeTotals() and picture

Posted: Mon May 19, 2025 2:35 pm
by damianodec
hi, problem solved.
the query that generated the oRs object returned values ​​with 5 decimal places.
with a CAST in the SQL string I solved the problem.
Thank you all.