Dim djxh As WinForm.TextBox = Forms("点检窗口").Controls("点检序号")
Dim x As String = djxh.Value
Dim Products As List(Of String) = DataTables("点检序号总表").GetValues("点检序号")
If x > "" Then
For i As Integer = 0 To Products.Count - 1
If x = Products(i) Then
If i = Products.Count - 1
x = Products(0)
Else
x = Products(i+1)
End If
Exit For
End If
Next
End If