Hi All

Keeping LOG 

Code debugging is unignorable need for every programmer and DEBUG facility of Clipper / Harbour / HMG is very handy;
with a little drawback : it's highly complex due to its features and not easy to learn and use.

For a little purpose, a little Msgxxx functions ( especially MsgDebug() of our genius Dr. Soto ) will be enough in many time, under many circumstances; remembering WAIT and ALERT() of console mode.

And we have a little problem too in this method : if required 'repetitive' calls ( such as into a loop ),  requiring repetitive answers may be annoying.

In this condition we need  a "log" file to records repeating values.

My preference ( IMHO the easiest way to build a text file ) is using and ALTERNATE file. 

Pseudo  code :

   build an empty log file
   
   begin loop
     .
     .
     .
     use "?" or QUOT() to write the log file
     .
     .
   end loop
   
   close log file and show content

Here  two little procedure to Open / Close and show log file

I hope will be useful.

Viva HMG :D

Esgici, 2013.10.02
