I am using a routine given to me by Brad S. to provide an on-screen view of my log file as the application runs.
I would like to make sure only a full line is shown at the top rather than the previous line cut off.

Here is the code
lcContent = Filetostr(myTWLog)&&('mylog.txt')
lnLines = Alines(laLines,m.lcContent)
lcResult = ''
For lnLine = Max(1,m.lnLines-20) To m.lnLines
lcResult = m.lcResult + laLines[m.lnLine] + Chr(13)+Chr(10)
Endfor
.conLog.Edit1.Value = m.lcResult
.conLog.Edit1.SelStart = Len(m.lcResult)
Can anyone suggest any amendment or reason as to why the top line is cutoff?
Regards
-Bryan