小马的天空
我为软狂

导航

 

2006年6月14日

摘要: 转换成DataSet的通用的方法如下: Private Function ConvertToDS(ByVal lst As IList, ByVal typ As System.Type) As DataSet Dim obj As Object Dim ds As New DataSet Dim tbl As DataTable = ds.Tables.Add(typ.Name) ' Get t... 阅读全文
posted @ 2006-06-14 13:18 Vinson 阅读(2434) 评论(0) 推荐(0) 编辑
 
摘要: 只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。只能输... 阅读全文
posted @ 2006-06-14 09:50 Vinson 阅读(186) 评论(0) 推荐(0) 编辑