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;
__classmethod bool __fastcall SelectFile(System::UnicodeString &AFileName, const System::UnicodeString ADefaultFolder = System::UnicodeString(), const System::UnicodeString AFilter = System::UnicodeString(), const _di_TTMSFNCUtilsFileCallBackEvent ACallBack = _di_TTMSFNCUtilsFileCallBackEvent());
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.