方法 ErrorDialog

ErrorDialog 方法显示包含错误消息的对话框。

语法

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

参数

file

必需。导致错误的文件。可以是 File 对象(从 FileSystemObject 获取)、Sally 面板中的 Item,或指定文件路径的字符串。

error

必需。包含错误说明的字符串,或指定预定义系统错误代码的数字。

buttons

必需。指定显示按钮类型的数字。

常量说明
0仅显示确定按钮。
1显示重试和取消按钮。
2显示跳过、全部跳过和取消按钮。
3显示重试、跳过、全部跳过和取消按钮。

title

可选。对话框标题栏中显示的字符串。

返回值

值说明
1确定
2取消
4重试
16跳过
17全部跳过

另请参阅

对象 Item

对象 Salamander

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