by Marc Venken » Fri Jun 02, 2023 11:55 am
Here some samples
oBrw:Age:bSumCondition := { |v,o| o:Value % 2 == 1 }, ;
oBrw:State:nFooterType := AGGR_COUNT, ;
oBrw:State:bSumCondition := { |v,o| "A" $ o:Value }, ;
oBrw:Salary:nFooterType := AGGR_SUM, ;
oBrw:Salary:bSumCondition := { || .NOT. FIELD->MARRIED }, ;
//oBrw[6]:sel:bSumCondition := { || ( oBrw:cAlias )->selected }
oBrw:chm_send:nFooterType := AGGR_COUNT
oBrw:chm_send:bSumCondition := { || if ( ( oBrw:cAlias )->chm_send > 0, .t., .f. ) }
oBrw:chm_BOU:nFooterType := AGGR_COUNT
oBrw:chm_BOU:bSumCondition := { || if ( ( oBrw:cAlias )->chm_bounce > 0, .t., .f. ) }
:aCols[3]:bSumCondition := { |v,o| (cFileName)->(DELETED()) } // You defined Alias
oBrw:totaal:nFooterType := AGGR_SUM
oBrw:totaal:bSumCondition := { || ( oBrw:cAlias )->totaal }
Marc Venken
Using: FWH 23.04 with Harbour