FindGroup

PowerBuilder Native Interface

IPB_Session interface:

FindGroup method

Description

Searches for a group with a given name and group type in the current library list.

Syntax

FindGroup(LPCTSTR name, pbgroup_type type)

Argument

Description

name

The group name in lowercase

type

An enumerated type defined in pbgroup_type

Return Values

pbgroup or null on failure.

Examples

This example finds the group associated with user_exception and uses the group to find the class:

group = session-> FindGroup("user_exception",
   pbgroup_userobject);
if ( group==NULL )
   return;
cls = session->FindClass(group, "user_exception")

See Also