GetCurrGroup

PowerBuilder Native Interface

IPB_Session interface:

GetCurrGroup method

Description

Obtains the name of the current group.

Syntax

GetCurrGroup( )

Return Values

pbgroup or null on failure.

Examples

This example gets the name of the current group and uses it to obtain the identifier of a shared variable, get the shared variable's value, and reset the shared variable's value:

curGroup = session -> GetCurrGroup();
fid = session -> GetSharedVarID(curGroup, "i_svar");
if (fid == 0xffff)
{
   MessageBox(NULL, "Illegal fid!", "default", MB_OK);
   return;
}
i_val = session-> GetIntSharedVar(curGroup, fid,
   isNull);
session-> SetIntSharedVar(curGroup, fid, i_val+1);

See Also