>
> 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