|
Previous Top Next |
Prototype: | (Byte pSort) |
pSort | Sort equate value |
This method sets the file sort order that is used in the ScanFiles method to sort the SELF.Files queue after all the files have been read in. This makes it easy to set the file sort order before the files are scanned. Valid values are:
IT_FileSort:Name Sort by file name
IT_FileSort:ShortName Sort by short name (8.3 name)
IT_FileSort:Date Sort by the file date
IT_FileSort:Time Sort by the file time
IT_FileSort:Size Sort by the file size
IT_FileSort:Attrib Sort by the file attributes.
If SetFileSort is not called before scanning for files, then the sort order is undetermined.
Example:
ITF ITFileSearchClass
Code
ITS.SetFileSort(IT_FileSort:Name) !! Sort by name
ITS.ScanDirectories()
ITS.ScanFiles()
See also: