Skip to main content
Table of Contents

TTMSFNCUtils.SaveFile Method

Shows a save-file dialog or platform file picker.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function SaveFile(var AFileName: string; const AFilter: string = ''; const ACallBack: TTMSFNCUtilsFileCallBackEvent = nil): Boolean;
__classmethod bool __fastcall SaveFile(System::UnicodeString &AFileName, const System::UnicodeString AFilter = System::UnicodeString(), const _di_TTMSFNCUtilsFileCallBackEvent ACallBack = _di_TTMSFNCUtilsFileCallBackEvent());

Parameters

Name Description
AFileName Receives the selected output file name.
AFilter Platform-specific file filter string.
ACallBack Optional callback invoked with the selected file and success state.

Returns

True when a file name is selected.