This property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property or the ListOfFileNames property.
[TVIkSort Type]
Unit
IkInit
type
TVIkSort = (vikSortNone,
vikSortFileName, vikSortDate, vikSortFileExtName,
vikSortFileExtDate, vikSortDirFileName, vikSortDirDate,
vikSortDirFileExtName, vikSortDirFileExtDate);
Property Value
Value | Explanation |
---|---|
vikSortNone | Not sorted |
vikSortFileName | Sorted by file name |
vikSortDate | Sorted by date |
vikSortFileExtName | Sorted by file extension + file name |
vikSortFileExtDate | Sorted by file extension + date |
vikSortDirFileName | Sorted by folder name + file name |
vikSortDirDate | Sorted by folder name + date |
vikSortDirFileExtName | Sorted by folder name + file extension + file name |
vikSortDirFileExtDate | Sorted by folder name + file extension + date |
Explanation
The Sort property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property or the ListOfFileNames property. When the Sort property is set to 2 (ikSortDate), the files will be sorted according to the value set in the SortDate property.
The differences from ImageKit5 and ImageKit6
In the ImageKit5 and ImageKit6, the Sort property's date referred to the last time the file was modified. In the ImageKit10 if the Sort property is set to 2 (ikSortDate) and the SortDate property is set to 1 (ikSortDateLastWriteTime), then the ImageKit10 will behave in the same way as the ImageKit5 and ImageKit6.
Setting this value
This value can be set at design-time and run-time.
Retrieving this value
This value can be retrieved at run-time.
Differences from ImageKit7/8/9/10 ActiveX
The VCL constants have a "v". In ActiveX, the constants are ikSortNone, ikSortFileName, ikSortDate, ikSortFileExtNam, ikSortFileExtDate, ikSortDirFileName, ikSortDirDate, ikSortDirFileExtName, ikSortDirFileExtDate