Dim n As Integer = Tables("科管_科室通知").Rows.Count If n >= 8 For i As Integer = n-8 To n -1 e.Form.Controls("Label" & n-i).text = Tables("科管_科室通知").Rows(i)("主题") Next Else For i As Integer = 0 To n -1 e.Form.Controls("Label" & n-i).text = Tables("科管_科室通知").Rows(i)("主题") Next End If