grjs_2004
34524
|
2008/6/8 16:21:16 |
用了AddObject的StringList 怎么把过滤过的StringList添加到另外一个StringList里面? 比如: StLst1: TStringList; StLst2: TStringList;
StLst1: 121212 ddd 13232 ddd 233333 eee
如何把StLst1里Objects是‘ddd’的过滤出来然后添加到 StLst2里面? |
huhuc
34434
|
2008/6/4 9:25:03 |
a value less than 0 if the string identified by Index1 comes before the string identified by Index. 楼主偏偏要反着写,正好和界面配合了。 |
fddr
34199
|
2008/5/22 19:44:00 |
抱歉发布的时候没注意
//SortType 排列类型 0 大小, 1 时间,3 文字 应该是 //SortType 排列类型 0 大小, 1 时间,2 文字 |
wqquake
34191
|
2008/5/22 10:27:58 |
我也看过TStringList里面的排序算法。有空再看看你的这个吧。 |
harryfin
34175
|
2008/5/21 9:59:01 |
做这个很简单的啦,TStringList本来就有CustomSort,自己写个回调函数给CustomSort调用即可,至于StringList里的某两项怎么比较法,在回调函数里实现。TStringList用的是QuickSort,速度很快的。 |
blueflag
34129
|
2008/5/18 9:39:50 |
速度如何?谁测试了??!!! |