题型:综合题 题类:常考题 难易度:困难
浙江省嘉兴市第一中学2017-2018学年高二下学期信息技术期中考试试卷
Private Sub Command1_Click()
Dim msg As String, c As String, tmp As String, s As String, flag As Boolean msg = Text1.Text
msg = msg + "/" '标记字符串结束符
tmp = "" s = ""
flag = True
For i = 1 To Len(msg)
c = Mid(msg, i, 1)
If ① Then flag = False
tmp = tmp + c
ElseIf flag = False Then s = s + tmp + ","
tmp = ""
②
End If
Next i
Text2.Text = s
End Sub
试题篮