没看懂这段代码的意思,截图或者上传实例说明一下
For j As Integer = 1 To bhs.count
If bhs(j-1) <> Format(j+199,"00000") Then '如果初始值为x,j应改为j+x-1
tzh = tzh & Format(j+199,"00000") '如果初始值为x,j应改为j+x-1
flag = True
Exit For
End If
Next
If bhs.count = 0 Then '如数据为空白
tzh = tzh & "00200" '设置初始值为x
ElseIf flag = False Then
tzh = tzh & Format(bhs.count+1, "00000")
End If