摘要: string a="DB1.5.0"; string[] sArray = a.Split(new string [] { "DB",".","."}, StringSplitOptions.RemoveEmptyEntries); 输出结果: sArray[0]=1 sArray[1]=5 sAr 阅读全文
posted @ 2020-11-25 17:11 bky_Leo29 阅读(405) 评论(0) 推荐(0)
摘要: 示例:DataRow[] myDataRow = DT.Select(“ A = ' B ' ”) ; //返回DataRow[]数据 DT:所要查询的DataTable数据 A:列名 B:A列中所要查询的信息 注: 1、注意单引号的使用 2、B中有特殊字符的用反斜杠号 “\” 转义 3、示例中的空 阅读全文
posted @ 2020-11-25 16:49 bky_Leo29 阅读(131) 评论(0) 推荐(0)
摘要: if (q.GetType().BaseType == typeof(Array)) MessageBox.Show("返回数据q为数组"); else MessageBox.Show("返回数据q为非数组"); 阅读全文
posted @ 2020-08-22 14:27 bky_Leo29 阅读(1946) 评论(0) 推荐(0)
摘要: private void txb_Log_TextChanged(object sender, EventArgs e)//文本内容变化时 { txb_Log.SelectionStart = txb_Log.Text.Length;//文本插入点=当前字符数 txb_Log.ScrollToCar 阅读全文
posted @ 2020-08-22 14:20 bky_Leo29 阅读(266) 评论(0) 推荐(0)