摘要: using System.Data;using System.Data.SqlClient;class connect{ public string cmdstr { get; set; } public string soure { get; set; } public connect(string strcmd,string database,out int i,params string[] arry) { cmdstr = strcmd; soure = "server=(local);database="+database+";trusted_conne 阅读全文
posted @ 2012-10-25 02:19 斗天! 阅读(143) 评论(0) 推荐(0) 编辑
摘要: using System;class Order{ public Order(string a,params double[] arry) { if (a == "正序") { for (int i = 0; i < arry.Length - 1; i++) { for (int j = 0; j < arry.Length - i - 1; j++) { if (arry[j] > arry[j + 1]) { double b; b = arry[j]; arry[j] = arry[j + 1]; arry[j + 1] =b; } } } } e 阅读全文
posted @ 2012-10-25 02:16 斗天! 阅读(152) 评论(0) 推荐(0) 编辑
摘要: function geticon(path:string):Integer;vari:Integer;extion:string;strlist:TStrings;begin i:=path.LastIndexOf('.'); extion:=path.Substring(i); extion:=extion.ToLower; strlist:=TStringList.Create; strlist.Add('.txt'); strlist.Add('.zip'); strlist.Add('.rar'); strlist.Add 阅读全文
posted @ 2012-10-25 02:09 斗天! 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 正确的方法是 1. 进入 C:\Program Files\Borland 2. 鼠标放到 delphi7目录上面 3. 右键菜单----属性----安全----点Users----编辑----点Users----所有能勾的权限勾上 4. 点 应用 5. 点 确定 打开delphi7或者要打开Project1.dpr均必须用鼠标右键菜单中的"以管理员身份运行"转自:<a href='http://sws.yuloo.com/'>国际商务师考试网</a> 阅读全文
posted @ 2012-10-25 02:06 斗天! 阅读(267) 评论(0) 推荐(0) 编辑