Dim i As Integer
Dim x As Integer
Dim y As Integer
Dim a As String
Dim c As Integer
Dim b As Integer
Dim e As Integer
Dim f As Integer
Dim d As Integer
i = 0
Dim z As Integer
For j = 1 To 15 Step 1
f = Mid(Text1.Text, j, 1)
If f = "/" Then
y = y + 1
If y <> 15 Then
Text2.Text = "标签缺少数据,请录入数据后再试!"
Else
Print y
End If
If Trim(Text1.Text) = "" Then
Text2.Text = "请输入数据。"
Else
For i = 1 To 15 Step 1
a = Text1.Text
x = InStr(Text1.Text, "//")
c = InStr(Text1.Text, "#/")
d = InStr(Text1.Text, "/#")
f = InStr(Text1.Text, "##")
If x <> 0 Or d = 0 Or c <> 0 Or f <> 0 Or y <> 15 Then
Text2.Text = "标签格式错误或者缺少数据,请重新输入"
c = InStr(Text1.Text, "#/")
Else
Text2.Text = "标签OK,可以出货。"
End If
Next i
End Sub
Qyouu
相关分类