cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

Just wondering how Dirlist sorts its files retrieved ?

It seems to me that Dirlist (when reading a folder containing hundreds of files)  randomly sorts its files or is there any kind of logic to be found in its sorting process ?

Second : to be able to process the files of a folder based on their creation date and time (oldest files first), i guess i need to use a datawindow and some api calls (findfirstfile etc.) ? I remember someone posted an example of this a while back ... Anybody still have this link please ?

TIA

John

0 Likes
View Entire Topic
Former Member
0 Likes

There is a solution in PFC (see PFC - Home) in the file service. The function of_dirlist in pfc_n_cst_filesrvunicode contains all you need to get the files with its properties (e.g. creation time). In of_sortdirlist of pfc_n_cst_filesrv you can find a solution for sorting the files using a datawindow.