Chapter Contents

Previous

Next
Widget Class: _getOwner

Widget Class: _getOwner



Returns the object identifier of the owner of an object


Syntax
Details

Syntax

objectName._getOwner( objectID );
objectName._getOwner( objectID, type );

Argument Type Use Description
objectID Numeric Output returns the object identifier of the owning object; if no owner, returns 0
type Character Input


Details

An owner is typically a parent object that enforces some control over the owned object. Examples of owning objects are extended tables, work areas, composites, and organizational charts. By default, _getOwner looks for the first owner of an object.

Example

Suppose a push button is contained within a composite object and that composite object is contained within an extended table. To get the object identifier of the extended table from the push button's _select method, a type of EXTTBL must be specified:

length _method_ $40;

SELECT:
 method;
   _super_._method();
   _self_._getOwner(id,'exttbl');
   id._setBorderColor('red');
 endmethod;

If a type was not specified, the object identifier of the composite would be returned.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.