Chapter Contents

Previous

Next
Frame Class: _mainLabel

Frame Class: _mainLabel



Runs the MAIN section of the frame's SCL entry


Syntax
Details

Syntax

objectName._mainLabel( );


Details

The _mainLabel method, which is normally used when the Frame class is subclassed, is not called by SCL code; it is invoked automatically by the frame after all _objectLabel methods have run. By default, the _mainLabel method runs the MAIN section of the frame's SCL program.

This method can be overridden to perform pre- or postprocessing with respect to the MAIN section. For example, to process some information both before and after the MAIN section of the frame's SCL program runs, you can override the _mainLabel method of the Frame class, and write your method similar to this:

 length _method_ $ 40;
 mainlab: method;
   /*---- perform preprocessing -----------------------*/
   /* some SCL statements here */
   /*---- run the MAIN section of the FRAME -----------*/
 call super (_self_,_method_);
   /*---- perform postprocessing ----------------------*/
   /* more SCL statements here */
endmethod;


Chapter Contents

Previous

Next

Top of Page

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