Private Sub Command2_Click()
Dim i, j, k As Long, str_all, str1, str2, str3 As String
str_all = Text1.Text
LTrim$ (str_all)
i = 2
While Mid$(str_all, i, 1) <> "n"
i = i + 1
str1 = Left$(str_all, i - 1)
k = Len(str1)
Wend
str2 = str1
For j = 0 To k
str3 = Mid$(str2, j, 3)
Select Case str3
Case Is = "g00"
Text2.Text = str3
Case Is = "g01"
Text3.Text = str3
End Select
Next j
End Sub
OPTION EXPLICIT没问题了,就是for-next中的MID依然还是无效的函数或参数,就是FOR -NEXT那段不行,前面的都能运行.你能运行下看行不行吗?
蝴蝶刀刀
明月笑刀无情