Getting the Module and Line Number
Posted in 1999
Ramdas Gopinath — — source: Informix-list mailing list archive (1991-1998)
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.