IPB_Session interface:
FindClass method
Description
Searches for a class with a given name within a given group.
Syntax
FindClass(pbgroup group, LPCTSTR name)
Argument |
Description |
---|---|
group |
The handle of the group in which the class resides |
name |
The class name in lowercase |
Return Values
pbclass or null on failure.
Examples
This example finds the group associated with the f_getrow function and uses the group to find the class:
group = session->FindGroup("f_getrow",
pbgroup_function);
if ( group==NULL )
return;
cls = session->FindClass(group, "f_getrow");
if ( cls==NULL )
return;
Usage
This method searches for a PowerBuilder class with the given name in the given group. For example, in a window definition w_1, w_1 is a group, and w_1 and controls contained in it are all classes of group w_1.