Page 1 of 1

Footer value

PostPosted: Sun Jun 18, 2023 9:41 am
by Natter
Hi,

The xBrowse column assumes a footer
Code: Select all  Expand view
:aCols[1]:FooterType:=AGGR_SUM

For the footer specified PICTURE
Code: Select all  Expand view
:aCols[1]:FooterPicture:="9999"

However, the footer shows a fractional number - 9999.0
Why ?

Re: Footer value

PostPosted: Sun Jun 18, 2023 1:20 pm
by nageswaragunupudi
However, the footer shows a fractional number - 9999.0

Should not.
How can we reproduce the problem at our end?

Re: Footer value

PostPosted: Sun Jun 18, 2023 5:34 pm
by Armando
Friends:

Pls try

Code: Select all  Expand view

:aCols[1]:cFooterPicture:="9999"
 


Instead
Code: Select all  Expand view

:aCols[1]:FooterPicture:="9999"
 


Regards

Re: Footer value

PostPosted: Sun Jun 18, 2023 5:59 pm
by Natter
I didn't find the reason why a fractional number is shown instead of an integer. I just rewrote the MakeTotals method for myself. Everything works. Thanks

Re: Footer value

PostPosted: Sun Jun 18, 2023 6:03 pm
by nageswaragunupudi
Natter wrote:I didn't find the reason why a fractional number is shown instead of an integer. I just rewrote the MakeTotals method for myself. Everything works. Thanks

I am surprised.
No reason.
It should work without any change in MakeTotals().

Re: Footer value

PostPosted: Sun Jun 18, 2023 6:14 pm
by Natter
In the MakeTotals() method there is such a string (1024)
Code: Select all  Expand view
:nTotal:=:nTotalSq:=0.0

I changed it like this
Code: Select all  Expand view
:nTotal:=:nTotalSq:=iif(:nDataDec=0, 0, 0.0 )