use startlog(), it can be more informative
if used in conjunction with err_get() and errlog()
HTH
Sathish S
-----Original Message-----
From: Ramdas Gopinath [mailto:ramdasg@fgss.com]
Sent: Tuesday, March 16, 1999 9:42 AM
To: INFORMIX LIST
Subject: Getting the Module and Line Number
Hi,
Normally, when a 4GL program errors out, it gives an error with the 4gl name
followed by the line number e.g.,
Program stopped at "main.4gl", line number 74
However, is there any intenal function to get the 4gl name and line number
anywhere in a 4gl program. Basically, I have a logging function that could
be called from several different programs, but one of the parameter's which
I would like to pass is the module name and line number, so that we know
from where the log was written. I do not want to hard code the module name
and line number, because it would become a real maintenance nightmare.
Thanks,
Gopi.