FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour MakeTotals() con parametros o condicion
Posts: 1054
Joined: Sun Oct 09, 2005 10:41 PM
MakeTotals() con parametros o condicion
Posted: Mon May 09, 2022 12:55 PM

Buenos dias Mr. Rao
Será posible que MakeTotals() funcione con parametros?,
Los parametro podrian considerar una condiucionpara totalizar los registros,,,
ejemplo

eCond := {|nCol|if(lCondition , nCol:nTotal += oData:valor, nCol:nTotal += 0)}

eCond := {||if(oData:registro > 0, nCol:nTotal += oData:valor, nCol:nTotal += 0)}

oBrw:MateTotals(eCond)

GRacias

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: MakeTotals() con parametros o condicion
Posted: Mon May 09, 2022 06:09 PM
Willi:

No te sirve así?

Code (fw): Select all Collapse
               WITH OBJECT :Contado
                  :nHeadStrAlign  := AL_RIGHT
                  :nFooterType    := AGGR_SUM
                  :bSumCondition  := { || ! oBrw:Can:Value }  // Aquí
                  :nFootStrAlign  := AL_RIGHT
                  :cFooterPicture:= "@Z 99,999,999.99"
               END


Saludos Mr.
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
Posts: 1054
Joined: Sun Oct 09, 2005 10:41 PM
Re: MakeTotals() con parametros o condicion
Posted: Tue May 10, 2022 04:27 AM

MI estimado Armando.
Me sirve,,, sale ok....gracias
Salu2

Continue the discussion