Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
Flow of Control in Extended Tables |
When an SCL program for an extended table runs, this process takes place:
In the process, the GETROW section runs for all visible rows each time the PUTROW section runs, no matter how many rows the PUTROW section processes.
In addition, the GETROW section runs when an extended table receives a _refresh method. An extended table receives a _refresh method in these cases:
For some of these methods, GETROW runs only if the method affects the display. See the individual methods for more information.
Because you can create a frame with multiple extended tables, the GETROW section does not always execute after the MAIN section runs. If GETROW were to run every time the MAIN section ran, modifying a widget outside of the extended tables would cause all GETROW sections in the table to run, whether they relied on the modified object or not. Potentially, this could slow down an application, especially if the GETROW section performed extensive work.
You can override this behavior using the _needRefresh method defined in the Widget class. The _needRefresh method allows the table to receive a _refresh method. You can also use the Extended Table method, _needRowRefresh.
Automatic Instance Variables |
Two special instance variables, _currow and _curcol, are added to the extended table object and all objects within the extended table. These two instance variables are marked as "automatic" so that when the extended table's _getrowLabel or _putrowLabel method, or an object's _objectLabel or _select method run, these variables are automatically initialized to the correct values.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.