Chapter Contents

Previous

Next
Object Class: _printObject

Object Class: _printObject



Used for subclassing


Syntax
Details

Syntax

objectName._printObject( );


Details

There is no default behavior provided by the Object class. When the _print method is sent to a FRAME object, the frame automatically sends the _printObject method to all widgets. You can, however, override _printObject and add your specific requirements.

Use the following code to override the _printObject method for all objects:

objcls=loadclass('sashelp.fsp.Object.class');
call send (objcls, '_setMethod', '_printObject',
      'sasuser.demo.prntmeth.scl', 'printObj');

You can then call the _print method of the Frame class to print all the context of the objects:

_frame_._print();


Chapter Contents

Previous

Next

Top of Page

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