Running a window – PB Docs 80

Running a window

During development, you can test a window without running
the whole application.

note.gif Preview button on the PowerBar and the PainterBar You can preview a window from the Window painter using the
Preview button on the PainterBar or run the window by clicking the
Preview button (PowerTip text is Run/Preview
Object

). For information about previewing using the PainterBar
button, see “Previewing a window”.

When you run the window using the PowerBar button, you must
save the window first. You can also trigger events and open other
windows as described below because the window is functional.

proc.gif To run a window:

  1. Click the Preview button in the PowerBar
    (not the PainterBar).

  2. In the Run/Preview dialog box, select
    Windows as the Objects of Type and then select the window you want
    to run as well as the target that includes that window, and click
    OK.

    You must save your work before running a window. If you have
    not saved your work, PowerBuilder prompts you to do so.

    PowerBuilder runs the window.

You can trigger events, open other windows, connect to a database,
and so on when running a window. The window is fully functional,
and it has access to global variables that you have defined for
the application and access to built-in globals, such as SQLCA. The
SystemError event is not triggered if there is an error, because
SystemError is an Application object event.

proc.gif To return to the Window painter:

  1. If the Window has a control menu, select
    Close from the control menu or click the Close button in the upper
    right corner or the window.

    or

    If the window is not visible, click PowerBuilder on the
    taskbar and then click the Terminate button.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x