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
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: Line cutoff in Dynamic Log
Thread ID: 210062 Message ID: 210188 # Views: 22 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Sunday, January 04, 2009 9:09:49 AM         
   


>
> when you run your code with debugger on. What do you read as value for the variable
>
> lcContent, just ofter the line?
> lcContent = Filetostr(myTWLog)
>
> I suspect you will notice the lcContent = myTWlog file contains a first line of only those 21 characters. If that's the case than you must investigate how myTWlog is constructed.

Hi Koen

There are so many calls to the prg that writes to the log file that trying to watch hundreds of lines will take a great deal of time.

I have watched some and they all have a full line in LcContent.

the log file is written to like this


Parameters  lcMessageText
LOCAL lcmytime

mypath = Sys(5) + Curdir()

lcmytime = Ttoc(Datetime(),2)

lcMyfullmessage = (lcmytime+'  ' +lcMessageText)

If Strtofile(lcMyfullmessage,(myTWLog),.T.) <> Len(lcMyfullmessage)

	Messagebox("String not written or only partially written to file.")

Else

	Strtofile(Chr(013)+Chr(10),(myTWLog),.T.  )
	
ENDIF


With myform_one && mainform

	If Int(Val(readpwini(inifile,'read','Mode','OnScreen'))) = 1

		 myform_one.conLog.Visible = .T. && always on top
		 myform_one.conLog.setfocus 


	lcContent = Filetostr(myTWLog)&&('mylog.txt')

and then the lines shown previously.



Does this help?



-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