appglobalalert Alert method
Return to Introduction  Previous page  Next page
Applies to
acAppGlobalAlert component  

procedure Alert(Param1: Cardinal {$IFDEF D4} = 0 {$ENDIF}; Param2: Cardinal {$IFDEF D4} = 0 {$ENDIF});  

The Alert method used to trigger the OnAlert event in each connected component, and pass some important information to each OnAlert event handlers.  
Connected components is the component specified in GlobalAlert property, plus all components which connected to THIS acAppGlobalAlert component.  
Param1 and Param2 parameters is some Cardinal (unsigned integer) values, which can mean anything you would like to. You should process passed information in OnAlert event handler.  

See also
GlobalAlert property;  
OnAlert event.