摘要: 今天工作中,遇到需要将txt文件转化到内存表dataset中,于是写了一个方法来实现: txt文件是特定格式的,文件中,一条记录为一行,各字段之间用“|”分割(注:最后一个字段后,有”|”)各字段依次为数据库中的相应字段。 举例如下: ID号|线路编码|车站编码|运行模式|模式设置日期|模式设置时间| 1|98|9821|06|20070913|211835| ... 阅读全文
posted @ 2007-10-17 17:17 Simmy.卧龙先生 阅读(562) 评论(1) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections.Generic; 3using System.Text; 4using Microsoft.Win32; 5using System.Windows.Forms; 6 7 8namespace BOM.NewUI.Functions 9{ 10 /**//// 11 /// 系统键... 阅读全文
posted @ 2007-10-17 16:50 Simmy.卧龙先生 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 今天在将内存表的数据复制到另外一个内存表的时候,出现了一个错误: 1DataTable dt = new DataTable(); 2 3dt = ds.Tables["All"].Clone();//把All的结构传递给dt 4 5DataRow[] dr=this.dataSet31.Tables["Product"].Select("bc=1"); 6for(int i=0... 阅读全文
posted @ 2007-10-17 13:56 Simmy.卧龙先生 阅读(1641) 评论(4) 推荐(0) 编辑