How to find event handlers?
- New
- How-to
- IDE
- PowerBuilder
-
Richard Hartman
- PowerBuilder
- Friday, 14 March 2025 06:52 PM UTC
I ran across an event handler "ue_ProcessTimeChange" in this context:
if ( dw_1.Trigger Event ue_ProcessTimeChange () <> 0 ) then
I could not find the actual handler searching the project for "ue_ProcessTimeChange", just references using it.
I cheated and used grep on the sources and found that when it is declared it can look like this:event dw_1::ue_processtimechange;int status
So I searched for any other declarations and found a half dozen:$ grep -ri "event.*processtimechange;"
SAM/SRC/res_edit/u_reservation_header_tabpage.sru:event dw_1::ue_processtimechange;int status
SAM/SRC/res_edit/u_reservation_path_tabpage.sru:event dw_1::ue_processtimechange;dwobject dwo
ws_objects/SAM/SRC/res_edit/res_edit.pbl.src/u_reservation_header_tabpage.sru:event dw_1::ue_processtimechange;int status
ws_objects/SAM/SRC/res_edit/res_edit.pbl.src/u_reservation_path_tabpage.sru:event dw_1::ue_processtimechange;dwobject dwo
SRC/res_edit/u_reservation_header_tabpage.sru:event dw_1::ue_processtimechange;int status
SRC/res_edit/u_reservation_path_tabpage.sru:event dw_1::ue_processtimechange;dwobject dwo
But when I search for those declarations in the IDE ... I get nothing. I can find references, searching for "ue_ProcessTimeChange" but this does not find the definitions/declarations.
So then I try with adding the semicolon which seems to be part of the event declaration, "ue_ProcessTimeChange;":
I get this:
(I also tried using ":ue_processtimechange", but that didn't change the results any)
I know they exist, because I found it grep'ing the raw sources (see above). How would I find these event handler definitions using the "proper" way in the IDE if search doesn't find them?? (There are other event handlers I would love to find...)
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.