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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.