Frame SCL is an SCL entry
that is associated with a particular frame (and is the only type of
SCL that is used in the example later in this document). Frame SCL
is typically used to control a frame and the components on that frame.
For example, in the
following diagram, the SCL code that is marked 'A' is the
initialization code for the frame, and executes before the frame is
displayed. This code specifies that the model that is associated with
the List Box look in the SASHELP library for tables. The code that
is marked 'B' is executed when a selection is made from
the List Box. When a table is selected, the table is displayed in
the Table Viewer.
Frame SCL Controls a Frame
You can view
and edit the frame SCL for any frame that you have open and active
by selecting
ViewFrame
SCL, or by selecting
Frame
SCL from the frame's pop-up menu.
Although you can open
and edit frame SCL just as you can an SCL program that is not associated
with a frame, you should only
compile frame
SCL from its associated frame (see
Compiling Applications for more information).