Table of Contents

TTMSFNCUtils.SelectFile Method

Shows an open-file dialog or platform file picker.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function SelectFile(var AFileName: string; const ADefaultFolder: string = ''; const AFilter: string = ''; const ACallBack: TTMSFNCUtilsFileCallBackEvent = nil): Boolean;

Parameters

Name Description
AFileName Receives the selected file name.
ADefaultFolder Initial folder; an empty string uses the user's documents folder.
AFilter Platform-specific file filter string.
ACallBack Optional callback invoked with the selected file and success state.

Returns

True when a file is selected.