VB Code:
Private Function GetLastLine(strString As String) As String
Dim i&, strLen&, c$, str$
strLen& = Len(strString$)
For i& = strLen& To 0 Step -1
c$ = Mid$(strString$, i&, 1)
str$ = str$ & c$
If c$ = Chr(13) Then
GetLastLine$ = str$
Exit Function
End If
Next i
End Function
Like I said, it might need some work, but you get the idea, right? It loops through each letter of the string from end to beginning and when it hits Chr(13), which is the enter key, it returns whatever it has run through and exits the function.