If Forms("窗口1").Opened Then Dim it As Winform.StripItem = Forms("窗口1").Strips("状态栏").Items("Stat") Dim t As Table = e.Table it.Text = "" If t.Cols(t.ColSel).IsNumeric Then '如果当前列是数值列 it.Text = "计数:" & Format(t.Aggregate(AggregateEnum.Count,t.TopRow,t.ColSel,t.BottomRow,t.ColSel),"0.0") & "个;" & "合计:" & Format(t.Aggregate(AggregateEnum.Sum,t.TopRow,t.ColSel,t.BottomRow,t.ColSel),"0.00") & ";" & "平均值:" & Format(t.Aggregate(AggregateEnum.Average,t.TopRow,t.ColSel,t.BottomRow,t.ColSel),"0.00") End If End If
|