方法 ErrorDialog
ErrorDialog 方法显示包含错误消息的对话框。
语法
ErrorDialog(file, error, buttons, [title])
参数
file
必需。导致错误的文件。可以是 File 对象(从 FileSystemObject 获取)、Sally 面板中的 Item,或指定文件路径的字符串。
error
必需。包含错误说明的字符串,或指定预定义系统错误代码的数字。
buttons
必需。指定显示按钮类型的数字。
| 常量 | 说明 |
| 0 | 仅显示确定按钮。 |
| 1 | 显示重试和取消按钮。 |
| 2 | 显示跳过、全部跳过和取消按钮。 |
| 3 | 显示重试、跳过、全部跳过和取消按钮。 |
title
可选。对话框标题栏中显示的字符串。
返回值
| 值 | 说明 |
| 1 | 确定 |
| 2 | 取消 |
| 4 | 重试 |
| 16 | 跳过 |
| 17 | 全部跳过 |
另请参阅
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