If there is no open Script view, selecting a menu or PainterBar item that requires a Script view opens one automatically. If you want to edit more than one script at a time, you can open additional Script views from the View menu.
To open a new Script view:
Select View>Script from the menu bar.
To edit a script for a control:
Double-click a scriptable control, or select Script from the PainterBar or a pop-up menu.
The Script view shows the default script for the control. If the Script view is in a stacked pane and is hidden, it pops to the front. If there is no open Script view, PowerBuilder creates a new one.
To edit a script for a function or event:
Double-click an item in the Event list or Function list views, or select the function or event from the second drop-down list in an open Script view.
The Script view shows the script for the selected event or function. If the Script view is in a tabbed pane and is hidden, it pops to the front. If there is no open Script view, PowerBuilder creates a new one.