aqDlg.ShowError Method

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

The aqDlg.ShowError method displays a message box with a red stop-sign icon, the specified text and the OK button. You can use this method to notify the user of errors that occur in your script extension.

To display a custom error message box, use the aqDlg.MessageDlg method.

Declaration

aqDlg.ShowError(Message)

Message [in]    Required    String    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Message

The text of the error message.

Result Value

None.

Remarks

If the message text contains characters in a language other than English, you should save the script in the UTF-8 format.

The aqDlg object and all of its methods can only be used in script extensions. If you need to show an error message box from an ordinary script, use the TestComplete built-in MessageDlg function.

See Also

aqDlg Object
MessageDlg Method
ShowMessage Method

Highlight search results