Introduction to PowerBuilder

HomePrevious Lesson: The Continue CommandButton
Next Lesson: The Print CommandButton

The Abort CommandButton

If the user wants to abort the application, we call the close event for the application, causing it to gracefully close:
// Object: cb_abort in w_error
// Event: Clicked
Halt Close

We know that you learned about Halt command previously. Simply using the Halt command without the Close parameter would terminate the application immediately. By adding this parameter, we force PowerBuilder to execute any code that was added to the application's close event.
HomePrevious Lesson: The Continue CommandButton
Next Lesson: The Print CommandButton