2025-06-27 10:27:00
Private Sub Command1_Click()
Dim a As String
Dim sp() As String
Dim i As Integer
a = ""
sp = Split(Text1.Text, vbCrLf)
For i = 1 To UBound(sp)
If Len(sp(i)) <> 0 Then
If InStr(sp(i), "2010") = 0 Then
a = a & Replace(sp(i), "HOST Name", "主机名") & vbCrLf
End If
End If
Next
Text2.Text = a
End Sub
等你,谢了