FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour :MakeTotals() and picture
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
:MakeTotals() and picture
Posted: Tue Apr 15, 2025 07:35 AM
Hi,
thisi is my xbrowse

this is code
	@ 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
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: :MakeTotals() and picture
Posted: Tue Apr 15, 2025 11:50 AM
damianodec

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



Adhemar C.
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: :MakeTotals() and picture
Posted: Tue Apr 15, 2025 12:03 PM

No, totel is 1.351.282,1200000000

I'd like total like the detail with two decimals

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: :MakeTotals() and picture
Posted: Tue Apr 15, 2025 01:25 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: :MakeTotals() and picture
Posted: Tue Apr 15, 2025 05:56 PM

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?

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: :MakeTotals() and picture
Posted: Wed Apr 16, 2025 04:56 AM

In addition to what Cesar suggests you should check, remember that in each column object there is the data :cFooterPicture

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: :MakeTotals() and picture
Posted: Mon May 12, 2025 09:41 AM

Hi,

I still have this problem.

the problem is only in first total.

Why?

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: :MakeTotals() and picture
Posted: Mon May 12, 2025 10:29 AM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: :MakeTotals() and picture
Posted: Mon May 19, 2025 02:35 PM

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.

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)

Continue the discussion