Testing the application in PowerBuilder

Before you try your application in a client browser, you can test it in PowerBuilder by defining a main window that opens the child window.

StepsTo test your PowerBuilder window plug-in application:

  1. Create a new window object whose type is main (the default).

  2. Write a script for the Open event that opens the plug-in’s starting child window:

    Open(w_child)
    
  3. For convenience, you can set appropriate window sizes in the Window painter:

  4. Run the test window by clicking the Preview button or selecting File>Run/Preview.

NoteDebugging in PowerBuilder To use the PowerBuilder debugger, you need to run an application instead of a single window. Define an Application object with a script that opens the main window. Then you can use the Run or Debug command to test the application.