Important: The information in this document is obsolete and should not be used for new development.
GetAlertStage
To determine the stage of the last occurrence of an alert, use theGetAlertStagefunction. TheGetAlertStagefunction is also available as theGetAlrtStagefunction.
FUNCTION GetAlertStage: Integer;DESCRIPTION
TheGetAlertStagefunction returns a number from 0 to 3 as the stage of the last occurrence of an alert. For example, you can use theGetAlertStagefunction to
ensure that your application deactivates the active window only if an alert box is to be displayed at that stage.ASSEMBLY-LANGUAGE INFORMATION
The global variableACountcontains this number. In addition, the global variableANumbercontains the resource ID of the alert resource of the last alert that occurred.SEE ALSO
Listing 6-19 on page 6-66 illustrates how to useGetAlertStageto determine whether to deactivate a window for the current alert stage. Listing 6-2 on page 6-21 illustrates how to use an alert resource to specify different alert responses according to different alert stages.