Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1.29 KB

TPJCtrlDropFiles-Files.md

File metadata and controls

21 lines (12 loc) · 1.29 KB

Files property

Project: Drop Files Components.

Unit: PJDropFiles.

Class: TPJCtrlDropFiles

Applies to: ~>5.0

property Files[Idx: Integer]: string;

Description

This read-only array property contains an indexed list of the fully specified names of the files dropped on the managed control. The array is zero based. The Count property gives the number of files dropped. Attempts to access array elements outside the index range result in an exception being raised.

The contents of Files may not exactly reflect all the names of the dropped files and folders. The listed files can be varied by changing the of the Options property. Furthermore, files filtered out via the Filter property or the OnFileFilter event handler are not included in Files. To ensure the property contains exactly the files and folders that were dropped set the Options property to dfoIncFiles, dfoIncFolders (the default) and assign neither a Filter component nor a OnFileFilter event handler.

To test whether the file at index Idx is a file or a folder use IsFolder.