GetMethodIDByEventID

PowerBuilder Native Interface

IPB_Session interface:

GetMethodIDByEventID method

Description

Returns the ID of the method that has a given predefined PowerBuilder event ID.

Syntax

GetMethodIDByEventID(pbclass cls, LPCTSTR eventID)

Argument

Description

cls

pbclass containing the method

eventID

A PowerBuilder predefined event string, such as pbm_bnclicked

Return Values

pbMethodID of the method or kUndefinedMethodID on error.

Examples

This statement obtains the ID of the event identified by the name pbm_lbuttonup:

pbmethodID mid = d_session->GetMethodIDByEventID(clz,
   "pbm_lbuttonup");

See Also