博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PASCAL知识
阅读量:6613 次
发布时间:2019-06-24

本文共 3054 字,大约阅读时间需要 10 分钟。

API Index

专业术语

Delphi -

PASCAL -
Object PASCAL -

系统PASCAL方法WIKI参考

FileCopy//- This function will copy files.DeleteFile//- This function will delete files.ListFilesInDirectory//- This function return a list (TStringList) of files in specified folder.

删除文件夹下所有文件,清空文件夹

var  FileList : TStringList;  filesfrom, filepath : string;  ISEMPTY, i : integer;beginfilesfrom:= ReqList.Values['DocPath'];FileList:= TStringList.Create;try ListFilesInDirectory(filesfrom, '*.*', false, FileList); ISEMPTY:= FileList.Count; if ISEMPTY > 0 then  for i:= 0 to FileList.Count - 1 do begin    filepath:= FileList.Strings[i];    DeleteFile(filepath);  end;finally FileList.free;end;

Object Pascal语言参考

//包含字符, indexOf //Pos 函数 在字符串中搜索子串 if POS('软','软件工具')>0 then 1 // ExecuteCompiledScript( Reqlist.values['Stingray_Phys_Path'] + 'StingrayRules\0\Post\QR_Entry', FSQLConnection, ReqList, FTrnMan ) // ExecuteCompiledScript( ReqList.Values['prefile'], FSQLConnection, ReqList, FTrnMan );if ReqList.Values['NBRESULT']='1' THEN ReqList.Values['__NBRESULT']:='1';// Upload_FilePath:= ReqList.Values['Upload_FilePath'];Srv_Img_Path:= ReqList.Values['Srv_Img_Path'] + ExtractFileName(Upload_FilePath);FileCopy( Upload_FilePath, Srv_Img_Path, True );// ExecuteCompiledScript( Reqlist.values['Stingray_Phys_Path'] + 'StingrayRules\0\Post\QR_Entry', FSQLConnection, ReqList, FTrnMan ) //GetConstant ReqList.Values['Not_Sufficient_Right '] := GetConstant('Global ', 'Not_Sufficient_Right ');ReqList.Values['OldtoNewACrID_ '+ReqList.Values['ACraftID ']] := ReqList.Values['NEWACRID '];ReqList.Values['NEWAirCraftID '] := ReqList.Values['OldtoNewACrID_ '+ReqList.Values['aPQA_ID ']];Reqlist.values['TheSaveString '] := ReplaceString(Reqlist.values['TheSaveString '],' * * ','''', false);UpdateWrittenPremium( StrToIntDef(ReqList.Values['sLOB_ID '], 1), ReqList.Values['PolicyCode '], FSQLConnection );UpdateWrittenPremiumLevel( StrToIntDef(ReqList.Values['sFRM_D '],1) , ReqList.Values['PolicyCode '], FSQLConnection );// EdtResult.Text := Copy(EdtResult.Text, 1, Length(EdtResult.Text)-1); ReqList.Values['sqlarrstr '] :=Copy(ReqList.Values['sqlarrstr '],1,Length(ReqList.Values['sqlarrstr '])-1);// if trim(uppercase(Reqlist.values['sSSR_CompareType '])) = 'INTEGER ' then begin if ProcessExpression(Reqlist.values[Reqlist.values['sSSR_FieldName ']] + Reqlist.values['sSSR_Operator '] + Reqlist.values['sSSR_StopValue ']) then Reqlist.values['AddSeRR ']:= '1 ' else Reqlist.values['AddSeRR ']:= '0 ';// var NewFile, NewFileName: String;begin NewFile:= CreateReport(Reqlist.values['sREP_ID'], 'PDF', ReqList, FSqlConnection);Reqlist.values['Response_Content']:= NewFile;// ----------------------------------------------------=----------------------- PASCAL类型转换函数 DateTimeToFileDateDateTimeToStrDateTimeToStringDateToStrFileDateToDateTimeFloatToDecimalFloatToStrFFloatToStrFloatToTextFloatToTextFmtIntToHexIntToStrStringToWideCharStrToDateStrToDateTimeStrToFloatStrToIntStrToIntDefStrToFloatDefStrToTimeTextToFloatTimeToStrVarToDateTimeWideCharLenToStringWideCharToStringWideCharToStrVar

转载地址:http://epaso.baihongyu.com/

你可能感兴趣的文章
oracle取前几行|中间几行|后几行
查看>>
16.1 Tomcat介绍
查看>>
QuickBI助你成为分析师——数据源FAQ小结
查看>>
十周三次课
查看>>
S/4HANA服务订单Service Order的批量创建
查看>>
2008 AD 复制有防火墙要开什么端口
查看>>
IT服务管理中的知识库建设
查看>>
【Lucene】Lucene通过CustomScoreQuery实现自定义评分
查看>>
我的友情链接
查看>>
Android应用程序组件Content Provider的共享数据更新通知机制分析(3)
查看>>
敏友的【敏捷个人】有感(11): 敏捷个人线下活动有感
查看>>
刺激用户危机意识,实现快速盈利的营销思维
查看>>
英特尔嵌入式突围
查看>>
WIN FORM 多线程更新UI(界面控件)
查看>>
【常见问题】系列01:双击文件夹打开新窗口
查看>>
access 2007创建表关系
查看>>
JDBC公共动作类
查看>>
JUnit单元测试
查看>>
[logstash-input-file]插件使用详解
查看>>
HDU 3103 Shoring Up the Levees(计算几何 搜寻区域)
查看>>