Description
Returns a reference to a context-specific instance of the specified service.
Applies to
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore object |
Syntax
PowerBuilder
integer objectname.GetContextService ( string servicename, PowerObject servicereference )
Argument |
Description |
---|---|
objectname |
A reference to an object or control for which you want a service. |
servicename |
String specifying the service object. Valid values include:
|
servicereference |
PowerObject into which the method places a reference to the service object specified by servicename. This argument is passed by reference. |
Return value
Returns 1 if the method succeeds and -1 if an error occurs.
Usage
Inherited from PowerObject. For information, see the section called “GetContextService” in PowerScript Reference.