Footer value

Footer value

Postby Natter » Sun Jun 18, 2023 9:41 am

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 ?
Natter
 
Posts: 1203
Joined: Mon May 14, 2007 9:49 am

Re: Footer value

Postby nageswaragunupudi » Sun Jun 18, 2023 1:20 pm

However, the footer shows a fractional number - 9999.0

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Footer value

Postby Armando » Sun Jun 18, 2023 5:34 pm

Friends:

Pls try

Code: Select all  Expand view

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


Instead
Code: Select all  Expand view

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


Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3201
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Footer value

Postby Natter » Sun Jun 18, 2023 5:59 pm

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
Natter
 
Posts: 1203
Joined: Mon May 14, 2007 9:49 am

Re: Footer value

Postby nageswaragunupudi » Sun Jun 18, 2023 6:03 pm

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().
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Footer value

Postby Natter » Sun Jun 18, 2023 6:14 pm

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 )
Natter
 
Posts: 1203
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 52 guests