本文整理自网络,侵删。
function Compare(List: TStringList; Index1, Index2: Integer): Integer;var S1, S2: string;begin S1 := List[Index1].Substring(0,11); S2 := List[Index2].Substring(0, 11); Result := CompareStr(S1, S2);end;
//排序varsl: TStringList;sl.CustomSort(LogLineCompare);
相关阅读 >>
Delphi 文件/流的加密解密单元 unit_compress.pas
Delphi中的处理事件 application.processmessages
Delphi 用firedac获取 sql server错误文本信息
更多相关阅读请进入《Delphi》频道 >>