Changeset 107 for Generics/TemplateGenerics/Demo/UMainForm.pas
- Timestamp:
- Jan 1, 2011, 1:34:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo/UMainForm.pas
r88 r107 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 9 ComCtrls, SpecializedList, SpecializedDictionary, SpecializedQueue, 10 DateUtils , SpecializedObjectList;10 DateUtils; 11 11 12 12 type … … 36 36 private 37 37 public 38 procedure WriteLn(Text: string); 38 Bitmap: TBitmap; 39 procedure WriteLn(Text: string = ''); 39 40 end; 40 41 … … 61 62 List := TListInteger.Create; 62 63 with List do try 64 WriteLn('AddArray([10, 20, 30, 40])'); 63 65 AddArray([10, 20, 30, 40]); 64 66 WriteLn('Implode: ' + Implode(',', IntToStr)); … … 74 76 WriteLn('Last: ' + IntToStr(Last)); 75 77 MoveItems(3, 2, 3); 78 WriteLn('Implode: ' + Implode(',', IntToStr)); 79 WriteLn('Insert(5, 11)'); 80 Insert(5, 11); 76 81 WriteLn('Implode: ' + Implode(',', IntToStr)); 77 82 finally … … 275 280 try 276 281 List2 := TList.Create; 282 WriteLn; 277 283 WriteLn('Test TList...'); 278 284 StartTime := Now; … … 395 401 Dictionary2 := TStringList.Create; 396 402 Dictionary2.NameValueSeparator := '|'; 403 WriteLn; 397 404 WriteLn('TStringList...'); 398 405 I := 0; … … 468 475 end; 469 476 470 procedure TMainForm.WriteLn(Text: string );477 procedure TMainForm.WriteLn(Text: string = ''); 471 478 begin 472 479 MemoOutput.Lines.Add(Text);
Note:
See TracChangeset
for help on using the changeset viewer.