2019年6月24日

Delphi GetDir 获取指定驱动器的当前路径名

摘要: //获取指定驱动器的当前路径名 GetDirvardir: string;b: Byte;beginb := 0;GetDir(b,dir);ShowMessage(dir); // //第一个参数: 1、2、3、4...分别对应: A、B、C、D...//0 是缺省驱动器end; 阅读全文

posted @ 2019-06-24 21:03 癫狂编程 阅读(462) 评论(0) 推荐(0)

Delphi ClientDataSet复制记录

摘要: 数据源记录集:ClientDataSetSource;目标记录集:ClientDataSetCopy 1)复制一条记录。 ClientDataSetCopy.Close; ClientDataSetCopy.Fields.Clear; ClientDataSetCopy.FieldDefs.Clea 阅读全文

posted @ 2019-06-24 18:13 癫狂编程 阅读(562) 评论(0) 推荐(0)

DELPHI 通用的数据记录复制过程

摘要: //表名,关键字段名,单条内容的SQL语句,产生新记录的值 function Tfrmdmmain.CopyTbale(const tablename, fileldname, swhere, newfileldstring: string): integer; var sql,sqlstring,sqlvalue,newsqlvalue:string; i:integer; ... 阅读全文

posted @ 2019-06-24 18:11 癫狂编程 阅读(776) 评论(0) 推荐(0)

导航

好的代码像粥一样,都是用时间熬出来的