> 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
Hi,
Try using the debugger and see how the first line looks before it is parsed into lcResult. If this does not give you a clue, would it be possible to upload a 'myTWlog' ?
Regards,
Koen