Skip to main content
Table of Contents

TTMSFNCUtils.OpenFile Method

Opens the specified file using the default system application associated with its file type.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class procedure OpenFile(AFile: string; AControlReference: TControl = nil);
__classmethod void __fastcall OpenFile(System::UnicodeString AFile, Fmx::Controls::TControl* AControlReference = (Fmx::Controls::TControl*)(0x0));

Parameters

Name Description
AFile Path of the file to open.
AControlReference Optional control used to determine the parent window context; may be nil.