I am creating a complex array from multiple data sources .. the second array column is one of those columns I want to sum up on the column footer. All I know is the column is aPlan [2] Header "Origional Budget"
How can I use MakeTotals() from an array column ?
Code: Select all | Expand
// project plan --------------------------- REDEFINE xBROWSE oLbx3 ; ARRAY aPlan ; HEADERS "Budget Item", ; "Origional_Budget", ; "Budget Revision", ; "Current Budget", ; "Origional Contract", ; "Contract Revisions", ; "Current Committed", ; "Pending Proposals", ; "Potential Exposures", ; "Potential Costs", ; "Potential Proj Costs" ; COLSIZES 200,70,70,70,70,70,70,70,70,70,70 ; // 11 ID 174 of oCust ; AUTOCOLS CELL LINES oLbx3:lFooter := .t. oCol := oLbx3:aCols[ 1 ] oCol:bFooter := { || Ltrim( Str( oLbx3:KeyNo() ) ) + " / " + LTrim( Str( oLbx3:KeyCount() ) ) } oLbx3:bChange := { || oCol:RefreshFooter() } WITH OBJECT oLbx3 :aCols[2]:nFooterType := AGGR_SUM // <---------- here .. does not work :MakeTotals() END oLbx3:aCols[2]:nDataStrAlign := AL_RIGHT // orig budget oLbx3:aCols[2]:nHeadStrAlign := AL_RIGHT oLbx3:lRecordSelector := .f.
Thanks
Rick Lipkin