This property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property or the list of files set in the ListOfFileNames property.

[Visual Basic]   thumbcontrolname.Sort [ = SortConstants ]
[Visual C++]     [ long = ]thumbcontrolname.GetSort()
thumbcontrolname.SetSort(long Val)
[VB.NET]   thumbcontrolname.Sort [ = ImageKit10Thumb(A)Lib.SortConstants ]
[C#.NET]   thumbcontrolname.Sort [ = ImageKit10Thumb(A)Lib.SortConstants ]

* ImageKit10ThumbALib refers to the ANSI version, ImageKit10ThumbLib refers to the Unicode version.

Property Value

Value Explanation
0 Not sorted
1 Sorted by file name
2 Sorted by date
3 Sorted by file extension + file name
4 Sorted by file extension + date
5 Sorted by folder name + file name
6 Sorted by folder name + date
7 Sorted by folder name + file extension + file name
8 Sorted by folder name + file extension + date

The following constants can also be used: (ikSortNone = 0, ikSortFileName = 1, ikSortDate = 2, ikSortFileExtName = 3, ikSortFileExtDate = 4, ikSortDirFileName = 5, ikSortDirDate = 6, ikSortDirFileExtName = 7, ikSortDirFileExtDate = 8).

Explanation

The Sort property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property or the list of files set in 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.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation