ErrorDialog Method

The ErrorDialog method displays a dialog box with an error message.

Syntax

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

Parameters

file

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

error

Required. String containing the error description, or a 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

From the Sally manual (GPL-2.0-or-later), © 1997-2023 Open Salamander Authors; © 2025-2026 Elias Bachaalany. Source: manual source (zip) · original page in the Sally repository