Icon ShowMessage

Unit: WebForms

procedure ShowMessage(const Msg: String;
                      const DlgCaption: String='';
                      AnimationStyle: TAnimationStyle=asNone;
                      AnimationDuration: Integer=0)

The ShowMessage procedure shows a simple modal message dialog. The Msg parameter indicates the message to show. The DlgCaption parameter is optional and indicates the caption of the dialog. The AnimationStyle and AnimationDuration parameters are optional, and indicate the type/duration of animation to use when showing the message dialog.


ShowMessage('An error has occurred !','Error');

ShowMessage('Hello world !','Hi !',asQuadEaseOut,500);