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
To vary error.log name
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact: