RE: Getting the Module and Line Number
Posted in 1999
Don't know if there is a function or not, but each module I use a SCCS string set, part of which is the module name. So this could easily be used. > 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. >