Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about strtofile and multi-user environment
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01155500
Message ID:
01155527
Views:
38
>>>Thanks, Sergey. I guess, it's not a big of a deal if some information would not end up in the log. I don't think this situation would ever occur.
>>>
>>
>>Are you using STRTOFILE() in append mode?
>
>Yes.
>
>*-- Writes to logfile
>	procedure WriteToLogfile
>	lparameters tcstring, tlNoTime
>	if m.tlNoTime
>		=strtofile(m.tcstring + CRLF, this.cLogFileDir + this.cLogFile, 1)
>	else
>		=strtofile(ttoc(datetime()) + " " + ;
>			m.tcstring + CRLF, this.cLogFileDir + this.cLogFile, 1)
>	endif
>	endproc
>
>
>I may try to change this code to do it in cycle. Do you think it's necessary?

I don't think it's necessary.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform