Dim t As Table = CurrentTable
If t.Form Is Nothing Then
Dim str1 As String = ""
With t
RibbonMenu.StatusBar.Message3 = ""
If .TopRow = .BottomRow AndAlso .LeftCol = .RightCol Then
Return
End If
RibbonMenu.StatusBar.Message3 = "个数:" & .Aggregate(AggregateEnum.Count,.TopRow, .LeftCol, .BottomRow, .RightCol) & " 累计:" & .Aggregate(AggregateEnum.Sum, .TopRow, .LeftCol, .BottomRow, .RightCol)
End With
RibbonMenu.StatusBar.Refresh
Else
With t.Form
If .Strips("状态栏").Items.Contains("screennotice") Then
Dim it As Winform.StripItem = .Strips("状态栏").Items("screennotice")
it.Text = "个数:" & t.Aggregate(AggregateEnum.Count, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " 累计:" & t.Aggregate(AggregateEnum.Sum, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol)
End If
End With
End If
可以用