delete triggers

wesf

New Member
I am manually defining a delete trigger for a database table in my application and have ran into a little snag. I need to be able to find out what window/procedure caused this trigger to fire. Inside the trigger, even the CURRENT-WINDOW:NAME and ACTIVE-WINDOW:NAME return as ?. THIS-PROCEDURE:FILE-NAME returns the name of the main window (where the trigger resides) Is there a way to get this information?
Thanks,
Wes
 
wesf said:
I am manually defining a delete trigger for a database table in my application and have ran into a little snag. I need to be able to find out what window/procedure caused this trigger to fire. Inside the trigger, even the CURRENT-WINDOW:NAME and ACTIVE-WINDOW:NAME return as ?. THIS-PROCEDURE:FILE-NAME returns the name of the main window (where the trigger resides) Is there a way to get this information?
Thanks,
Wes
Alright. I figured this out. In the procedure, I can use the PROGRAM-NAME(2) function to get not only the file name, but the internal procedure of that file.
Wes
 
This also works,
You could def a handle.
Assign handle = SELF at the point you wish to know where you are.
Then you can query the handle attributes at will, program name ...
 
Back
Top