Re: getting a procedure name



martin.doherty@xxxxxxxxx wrote in
news:1132243011.853586.34950@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

> Hi,
>
> I'm writing a procedure that in case of an error returns something
> like:
>
> "Error in procedure: ID_CHK"
>
> I want to make this generic so is there anyway i can return a
> procudres name from inside that procedure
>
> <snip>
> procedure id_chk:
> ....
> ....
> find blah.
>
> if unavail blah then
> do:
> message "Error in procedure: " + <proc_name?>
> return
> end.
>
> ....
> ....
>
> end procedure.
>
> </snip>
>
> Thanks
>
> Martin
>
>

You are looking for THIS-PROCEDURE:FILE-NAME which will return the name
of the current procedure..

Kevin
.



Relevant Pages

  • getting a procedure name
    ... I'm writing a procedure that in case of an error returns something ... if unavail blah then ... Martin ... Prev by Date: ...
    (comp.databases.progress)
  • Re: getting a procedure name
    ... >> I'm writing a procedure that in case of an error returns something ... >> if unavail blah then ... There are exceptions, especially ... if you are in a trigger when it is invoked. ...
    (comp.databases.progress)