摘要:
//1、打开目录和打开txt文件 procedure TMainForm.bbtnOpenLoClick(Sender: TObject); var sLogName: string; begin sLogName := Pub_EXEPath + '\日志\' + FormatDateTime('yyyy-mm-dd',date())+'.txt'; if not FileExis... 阅读全文
摘要:
//2.2 代码块--写日志 //调用例句如:LogMsg('FTP上传线程终止',False,true); procedure LogMsg(AMsg: string; const blnIsErrorMsg: boolean = False; const BoolSaveToFile: Boolean = True); var strMsg: string; begin try ... 阅读全文
摘要:
//Json 格式如下 阅读全文
摘要:
SetLength(OldDeptInfo,0); //释放旧数组 OldDeptInfo:=nil; 这样也可以; //SetLength(OldDeptInfo,Length(NewDeptInfo)); //不需要设定长度; OldDeptInfo:= NewDeptI... 阅读全文