Private Sub Command1_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
Text3.Text = ""
End Sub
Private Sub Command4_Click()
Text2.Text = ""
End Sub
Private Sub Command2_Click()
Dim myJY() As String, myDD() As String, myOutput As String, i As Integer, j As Integer, myOk As Boolean
Text1.Text = Replace(Text1.Text, ",", " ")
Text1.Text = Replace(Text1.Text, vbCrLf, "")
Text2.Text = Replace(Text2.Text, ",", " ")
Text2.Text = Replace(Text2.Text, vbCrLf, "")
myDD = Split(Text1.Text, " ")
myJY = Split(Text2.Text, " ")
For i = 0 To UBound(myJY)
myOk = False
For j = 0 To UBound(myDD)
If myJY(i) = myDD(j) Then
myOk = True
End If
Next
myOutput = myOutput & myJY(i) & vbTab & IIf(myOk = True, "对", "××") & vbCrLf
Next
Text3.Text = myOutput
End Sub