OverwriteDialog Method
The OverwriteDialog method displays a file overwrite confirmation dialog box.
Syntax
OverwriteDialog(file1, file2, buttons)
Parameters
file1
Required. File that is to be overwritten by the second file. For more information, see the following Remarks section.
file2
Required. File that is to overwrite the first file. For more information, see the following Remarks section.
buttons
Required. Number specifying the type of buttons to display.
| Constant | Description |
| 4 | Display Yes, All, Skip, Skip All and Cancel buttons. |
| 5 | Display Yes, No and Cancel buttons. |
Return Values
| Value | Description |
| 2 | Cancel |
| 6 | Yes |
| 7 | No |
| 16 | Skip |
| 17 | Skip All |
| 18 | All |
Remarks
The file parameters can be either File objects obtained from the FileSystemObject or Sally panel Item objects. If you can retrieve neither of these object types, you can use a multiline string instead. The first line of the text should specify the full file path. The second line should specify additional information such as the file size and the date and time when the file was last modified. The lines of text should be separated with the new line (CR) character.
See Also
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