2009年10月17日 星期六
批量清空memo的操作方法
扬帆| 扬帆Blog - Delphi |21:01:24
for i := 0 to ControlCount - 1 do if Controls[i] is TCustomMemo then TCustomMemo(Controls[i]).Clear;==========================================================ComponentCount和ControlCount区别很...
Delphi 2010 新增功能之: IOUtils 单元(6): TPath(结构体) 的方法与属性
万一| 万一的 Delphi 博客 |20:48:00
以后路径相关的处理, 用 IOUtils.TPath 就很方便了.//较常用的方法: TPath.GetTempPath; {获取临时文件夹路径} TPath.GetTempFileName; {获取一个临时文件名} TPath.GetPathRoot(); {提取盘符, 如: c:\} TPath.GetD...
Delphi 2010 新增功能之: IOUtils 单元(5): TDirectory 的其他功能
万一| 万一的 Delphi 博客 |00:19:00
TDirectory.CreateDirectory(); {建立新目录} TDirectory.Exists(); {判断文件夹是否存在} TDirectory.IsEmpty(s1); {判断文件夹是否为空} TDirectory.Copy(); {复制文件夹} TDirectory.Move(); {移动文件...





冀公网安备 13098202000212号