The doneState shows 0 for most actions. Selecting a Done or OK button sets the done state. Selecting a Cancel button sets the cancel state. With the done or cancel state set, you use axlFormClose to close the form. Setting the abort state closes the form, even if you do not issue an axlFormClose command.