GetSystemGroup
Description
Returns a PowerBuilder internal system group.
Syntax
|
1 |
GetSystemGroup() |
Return value
pbclass or null on error.
Usage
GetSystemGroup returns the PowerBuilder internal system group,
which contains all the system types such as PowerObject,
NonVisualObject, Structure, Window, CommandButton, and so on. You can
use this system group to obtain a system class. You might need to call
PowerScript functions in the PowerBuilder extension. To achieve this,
you first need to get the pbclass that the PowerScript function class
resides in. This code gets the PowerBuilder system function
class:
|
1 2 3 |
pbgroup sysGroup = session->GetSystemGroup(); pbclass sysFuncClass = session->FindClass(sysGroup, "SystemFunctions"); |
After you get the system class, you can obtain the method ID of a
PowerScript function by calling FindMatchingFunction, and then you can
invoke the PowerScript function.
See also