1 Star 0 Fork 0

田园书生/php_desktop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ufrmPHPLog.pas 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
lobtao 提交于 2018-08-30 20:22 . add feature
unit ufrmPHPLog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, DynamicSkinForm, ExtCtrls, unConfig, utils_dvalue,
utils_dvalue_json;
type
TfrmPHPLog = class(TForm)
Memo1: TMemo;
DSF: TspDynamicSkinForm;
Panel1: TPanel;
private
{ Private declarations }
procedure PHP_ERROR(var aMessage: TMessage); message YS_BROWSER_APP_PHPERROR;
public
{ Public declarations }
end;
var
frmPHPLog: TfrmPHPLog;
implementation
uses
unMoudle;
{$R *.dfm}
{ TfrmPHPLog }
procedure TfrmPHPLog.PHP_ERROR(var aMessage: TMessage);
var
strTmp: string;
dValue: TDValue;
AType: Integer;
AText: string;
ALineNo: string;
AFileName: string;
begin
strTmp := StrPas(PChar(aMessage.WParam));
dValue := TDValue.Create(vntObject);
JSONParser(strTmp, dValue);
try
AType := dValue.FindByPath('AType').AsInteger;
AText := '' + dValue.FindByPath('AText').AsString;
ALineNo := '' + dValue.FindByPath('ALineNo').AsString;
AFileName := dValue.FindByPath('AFileName').AsString;
strTmp := AFileName + #13#10 + ALineNo + #13#10 + AText + #13#10;
strTmp := strTmp + 'ʱ䣺' + FormatDateTime('YYYY-MM-dd HH:mm:ss', Now) + #13#10;
// Memo1.Lines.Insert(0,AFileName);
// Memo1.Lines.Insert(0,ALineNo);
// Memo1.Lines.Insert(0,AText);
Memo1.Lines.Insert(0, strTmp);
finally
dValue.Free;
end;
end;
end.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/tyss521/php_desktop.git
git@gitee.com:tyss521/php_desktop.git
tyss521
php_desktop
php_desktop
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385