RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFileOpenWith.FileName Property

Specifies the file to be opened when the action executes.

Pascal
property FileName: TFileName;
C++
__property TFileName FileName;

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!