Dim a As String
For i = 1 To Len(Text1.Text)
a = Mid(Text1.Text, i, 1)
If Asc(a) > 0 Then
If a = Chr(10) Then
Text2.Text = Text2.Text + vbCrLf
End If
a = ""
Text2.Text = Text2.Text + a
Else
Text2.Text = Text2.Text + a
End If
Next
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
End Sub 作者: liuyanghejerry 时间: 2008-8-2 18:07