CodingFrom.pas 847 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. unit CodingFrom;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, ComCtrls, StdCtrls;
  6. type
  7. TCodingLoggerForm = class(TForm)
  8. lv1: TListView;
  9. mmo1: TMemo;
  10. private
  11. { Private declarations }
  12. public
  13. procedure InsertLog(AMessage, ACode, ALoginName, AStrLevel: string);
  14. end;
  15. var
  16. CodingLoggerForm: TCodingLoggerForm;
  17. implementation
  18. {$R *.dfm}
  19. { TCodingLoggerForm }
  20. procedure TCodingLoggerForm.InsertLog(AMessage, ACode, ALoginName,
  21. AStrLevel: string);
  22. begin
  23. mmo1.Lines.Add(
  24. Format('´íÎóµÈ¼¶:%s, ÄÚÈÝ:%s==%s, µÇ¼Ãû:%s.',
  25. [AStrLevel, ACode, AMessage, ALoginName,AStrLevel]));
  26. // with lv1.Items.Insert(0) do
  27. // begin
  28. // Caption := ACode;
  29. // SubItems.Add(ALoginName);
  30. // SubItems.Add(AMessage);
  31. // SubItems.Add(AStrLevel);
  32. // end;
  33. end;
  34. end.