PlatformAPI.TOTAFileOverwriteControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TOTAFileOverwriteControl = (ofocAlwaysOverwrite, ofocNeverOverwrite, ofocPromptUserToOverwrite);

C++

enum DECLSPEC_DENUM TOTAFileOverwriteControl : unsigned char { ofocAlwaysOverwrite, ofocNeverOverwrite, ofocPromptUserToOverwrite };

Properties

Type Visibility Source Unit Parent
enum public
PlatformAPI.pas
PlatformAPI.hpp
PlatformAPI PlatformAPI

Description

TOTAFileOverwriteControl lets you define an approach to follow when dealing with file operations that would result in overwriting existing files. You may choose between the following approaches:

  • ofocAlwaysOverwrite: Overwrite any existing files, and do not ask about it.
  • ofocNeverOverwrite: Do not overwrite any existing file, and do not ask about it.
  • ofocPromptUserToOverwrite: Ask user whether or not to overwrite existing files.