请问如何只读取最后一行内容?在文本框2中显示。作者: fan0217 时间: 2006-6-14 03:54
拆分字符串作者: kevindeng 时间: 2006-6-14 08:14
Dim i As Integer
Dim kAscii As Integer
Dim rightLen As Integer
For i = Len(Text1) To 1 Step -1
rightLen = rightLen + 1
If kAscii = 10 And Asc(Mid(Text1, i, 1)) = 13 Then
rightLen = rightLen - 2
Exit For
End If
kAscii = Asc(Mid(Text1, i, 1))
Next