ErrorDialog Method

The ErrorDialog method displays dialog box with an error message.

Syntax

ErrorDialog(file, error, buttons, [title])

Parameters

file

Required. File that caused the error. This can be either the File object obtained from the FileSystemObject or the Salamander panel Item or string specifying the file path.

error

Required. String containing the error description or number specifying one of the predefined system error codes.

buttons

Required. Number specifying the type of buttons to display.

ConstantDescription
0Display OK button only.
1Display Retry and Cancel buttons.
2Display Skip, Skip All and Cancel buttons.
3Display Retry, Skip, Skip All and Cancel buttons.

title

Optional. String displayed in the title bar of the dialog box.

Return Values

ValueDescription
1OK
2Cancel
4Retry
16Skip
17Skip All

See Also

Item Object

Salamander Object