Skip to main content
Table of Contents

TOverwriteMode Enumeration

Controls how XLSExport treats a target file that already exists.

API unit family: TMSFNCDataGridExcelIO

Members

Name Description
omNever Keeps the existing workbook: it is opened, the grid is written into the named sheet (according to the insert mode) or into a newly added sheet, and the workbook is saved back. Other sheets are preserved.
omAlways Deletes the existing file without prompting and writes a new workbook.
omWarn Asks for confirmation using ExportOverwriteMessage. On Yes the file is deleted and a new workbook written; on No nothing is exported.