Changeset 148 for trunk/Packages/Common/Common.pas
- Timestamp:
- Jun 5, 2023, 7:40:45 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Common.pas
r147 r148 1 unit UCommon;1 unit Common; 2 2 3 3 interface … … 10 10 11 11 type 12 TObjects = TObjectList<TObject>;13 12 TArrayOfByte = array of Byte; 14 13 TExceptionEvent = procedure(Sender: TObject; E: Exception) of object; … … 66 65 function GetFileFilterItemExt(Filter: string; Index: Integer): string; 67 66 function IntToBin(Data: Int64; Count: Byte): string; 67 function Implode(Separator: Char; List: TList<string>): string; 68 68 function LastPos(const SubStr: String; const S: String): Integer; 69 69 function LoadFileToStr(const FileName: TFileName): AnsiString; … … 314 314 end; 315 315 316 function Implode(Separator: Char; List: TList<string>): string; 317 var 318 I: Integer; 319 begin 320 Result := ''; 321 for I := 0 to List.Count - 1 do begin 322 Result := Result + List[I]; 323 if I < List.Count - 1 then Result := Result + Separator; 324 end; 325 end; 326 316 327 {$IFDEF WINDOWS} 317 328 function GetUserName: string;
Note:
See TracChangeset
for help on using the changeset viewer.