Vcl.StdActns.TFileOpenWith.FileName
Delphi
property FileName: TFileName read FFileName write FFileName;
C++
__property System::Sysutils::TFileName FileName = {read=FFileName, write=FFileName};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.StdActns.pas Vcl.StdActns.hpp |
Vcl.StdActns | TFileOpenWith |
Description
Specifies the file to be opened when the action executes.
Set FileName to specify the file to open with the application that the user selects in the Open With dialog. If the FileName property is not set, then when the action executes, it displays an Open dialog (specified by the Dialog property) in which the user can select a file before displaying the Open With dialog.
Note: When the action displays the Open dialog, it uses the selected file to set FileName. Thus, if you want to let the user select a file the next time the action executes, you must clear the FileName property in an OnAccept event handler.