2009/6/23 Lukas Gebauer <[email protected]>:
> FtpList have not sorting. Records are in same order as has been
> returned form the server.
>
> If you want to sort, then it must be done by your code.
Thanks Lukas, I sorted manually in the code and it works.
However, I tried to generalize it deriving a new TSortFtpSend =
class(TFTPSend) and cloning some QuickSort code from tiOPF project,
using RTTI. There is not changes on your code rather than a {$M+} on
TFTPListRec class, so published property are now in RTTI tables. And
it seems to work pretty well, so the user can do something of similar:
fFtp.SortByProps(['FileTime', 'FileSize'], False);
False is for reverse order.
If you or someone thinks that could be useful I can send the code here.
Thank you
Antonio
--
Antonio Sanguigni alias slapshot
----------------------------------------------------------------------
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.pieroni.biz/edupup
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public