Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get the name of the source that is raning.

Status
Not open for further replies.

la46

Programmer
Mar 15, 2004
26
MA
Hi,
I want to know the name of the soucre file(filename.4gl) that is running in an application(i know the files that are running, example onefile.4ge or onefile).
Is there any method to get that!

thanks!
 
Sorry for the mistake in the title(running).
I 've get a means, Just to execute the file in bad way that it quit and mention the errorlike:

Program stopped at "source.4gl", line number 32.
FORMS statement error number -1110.
Form file not found

!!!

 
You can use arg_val(0) which contains the program name.

Other variables that might help:

SQLCA.SQLCODE - error status of last SQL
SQLCA.SQLERRD[2] - ISAM status for last SQL
err_get() - get description for error (uses finderr)

Note the module is recorded in the log file whenever you have started the error logfile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top