How to print a status line to a log file?
Publicado: Lun Oct 03, 2011 12:22 am
Function WriteLog( str )
SET CONSOLE OFF
SET PRINTER ON
SET PRINTER TO "BCLOG.TXT" ADDITIVE
? str
SET PRINTER OFF
SET PRINTER TO
Return Nil
, which is supposed to print status or variable assignments, depending
on the value of the bIsTrace property.
The problem is, that at the end of the program, the BCLOG.TXT file is
empty. Do I need to flush the file in some way?
There used to be some kind of a Log Write function in xHarbour, or maybe
it was Harbour. Is there an alternative to the WriteLog function above?
SET CONSOLE OFF
SET PRINTER ON
SET PRINTER TO "BCLOG.TXT" ADDITIVE
? str
SET PRINTER OFF
SET PRINTER TO
Return Nil
, which is supposed to print status or variable assignments, depending
on the value of the bIsTrace property.
The problem is, that at the end of the program, the BCLOG.TXT file is
empty. Do I need to flush the file in some way?
There used to be some kind of a Log Write function in xHarbour, or maybe
it was Harbour. Is there an alternative to the WriteLog function above?