To vary error.log name

To vary error.log name

Postby MarcoBoschi » Wed Nov 15, 2006 9:11 am

Is it possible to vary error.log name?
without #include "fivewin.ch" Yes
Is very useful for me to trace to check several user errors....

#include "fivewin.ch"
FUNCTION MAIN(par_ute)
LOCAL cProg
LOCAL cNumber
LOCAL nNumber
LOCAL cError
// settaggio error.log
cProg := hb_argv(0)
? cProg
cProg := STRTRAN(UPPER(SUBSTR(cProg, RAT("\",cProg)+1)),".EXE","")
? cProg
cError := par_ute + "_" + ALLTRIM(cProg) + ".ERR"
? cError

SET ERRORLOG TO &cError
? nNumber + cNumber


RETURN NIL
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Postby Antonio Linares » Wed Nov 15, 2006 12:06 pm

Marco,

yes, you may modify its name at source\function\errsysw.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby MarcoBoschi » Thu Nov 16, 2006 3:20 pm

Thanks You Antonio
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests