Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: bryan wetton
  Where is bryan wetton?
 Morphett Vale
 Australia
 bryan wetton
 Tags
Subject: Line cutoff in Dynamic Log
Thread ID: 210062 Message ID: 210062 # Views: 41 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Saturday, January 03, 2009 2:50:41 AM         
   


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



COMPLETE THREAD
Line cutoff in Dynamic Log Posted by bryan wetton @ 1/3/2009 2:50:41 AM
RE: Line cutoff in Dynamic Log Posted by Koen Piller @ 1/3/2009 1:25:41 PM
RE: Line cutoff in Dynamic Log Posted by bryan wetton @ 1/4/2009 3:50:02 AM
RE: Line cutoff in Dynamic Log Posted by Koen Piller @ 1/4/2009 8:45:25 AM
RE: Line cutoff in Dynamic Log Posted by bryan wetton @ 1/4/2009 9:09:49 AM
RE: Line cutoff in Dynamic Log Posted by Yousfi Benameur @ 1/5/2009 12:45:22 AM
RE: Line cutoff in Dynamic Log Posted by Koen Piller @ 1/5/2009 10:24:22 AM
RE: Line cutoff in Dynamic Log Posted by bryan wetton @ 1/5/2009 11:58:37 PM
RE: Line cutoff in Dynamic Log Posted by tushar @ 1/4/2009 7:01:45 AM