第二个问题
自己写一个函数返回真,则相同,否则不同
Function blnCompare() As Boolean
Dim lngCnt&, lngCnt2
For lngCnt = 0 To Text1.Count - 1
For lngCnt2 = 0 To Text1.Count - 1
If lngCnt <> lngCnt2 Then
If Text1(lngCnt) <> Text1(lngCnt2) Then
blnCompare = False
Exit Function
End If
End If
Next
Next
blnCompare = True
End Function
Private Sub Command1_Click()
If blnCompare Then
MsgBox "相同"
Else
MsgBox "不同"
End If
End Sub