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 theGetAlertStage
function. TheGetAlertStage
function is also available as theGetAlrtStage
function.
FUNCTION GetAlertStage: Integer;DESCRIPTION
TheGetAlertStage
function returns a number from 0 to 3 as the stage of the last occurrence of an alert. For example, you can use theGetAlertStage
function 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 variableACount
contains this number. In addition, the global variableANumber
contains 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 useGetAlertStage
to 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.