您的位置:首页 > 其它

SaveVarToFile

2014-12-01 11:05 155 查看
procedure SaveVarToFile(SqlStr, FileName: String);

var AStr:TStringList;

AFilePath:string;

begin

if FileName='' then

FileName:=FormatDateTime('YYYYMMDDHHMMSS',Now);

AStr:=TStringList.Create();

AStr.Add(SqlStr);

AFilePath:='';

AFilePath:=GetCurrentDir;

AFilePath:=AFilePath+'\'+FileName+'.txt';

AStr.SaveToFile(AFilePath);

AStr.Free;

end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐