Returns a reference to a context-specific instance of the specified service.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore object |
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. |
Returns 1 if the method succeeds and –1 if an error occurs.
Inherited from PowerObject. For information, see GetContextService in the PowerScript Reference.