2008年9月19日
摘要: 1.为按钮添加确认对话框 Button1.Attributes.Add("onclick","return confirm(’确认?’)"); button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") 2.删除表格选定记录 //获得DataGrid主键 in... 阅读全文
posted @ 2008-09-19 11:02 BROTHER 阅读(181) 评论(0) 推荐(0)
  2008年8月4日
摘要: (一).确认删除用法: 1. BtnDel.Attributes.Add("onclick","return confirm('"+"确认删除?"+"')"); 2. linktempDelete.Attributes["onclick"]="javascript:return confirm('"+"确认删除?"+"');"; 3. private void grdProje... 阅读全文
posted @ 2008-08-04 12:39 BROTHER 阅读(182) 评论(0) 推荐(0)
  2008年7月22日
摘要: 基本算法: 用一个数组为存储计算结果,每一项保存结果中的一位,将结果按从低到高位依次放入数组a[0]....a[n]. for i:=2 to n do begin carry:=0; for j:=1 to digit do begin temp:=a[j-1]*i+carry; a[j-1]:=temp mod 10; carry... 阅读全文
posted @ 2008-07-22 12:16 BROTHER 阅读(219) 评论(0) 推荐(0)
  2008年4月25日
摘要: Dynamic content is shown between here: And here. 阅读全文
posted @ 2008-04-25 13:58 BROTHER 阅读(182) 评论(0) 推荐(0)
  2008年3月4日
摘要: XMLDocument1.Active:=false; XMLDocument1.LoadFromFile(ExtractFilePath(Application.ExeName)+'*.xml'); XMLDocument1.Active:=true; Root:=XMLDocument1.DocumentElement; Node:=Root.ChildNodes.First; w... 阅读全文
posted @ 2008-03-04 09:38 BROTHER 阅读(324) 评论(0) 推荐(0)
  2007年12月14日
摘要: uses DBGridEhImpExp; procedure TInvoiceManager.ppmSaveSelectionClick(Sender: TObject); var ExpClass:TDBGridEhExportClass; Ext:String; begin SaveDialog1.FileName := 'file1'; if (ActiveControl is T... 阅读全文
posted @ 2007-12-14 17:18 BROTHER 阅读(606) 评论(0) 推荐(0)
摘要: Delphi中DBChart的应用: 1.绑定数据 ADOQuery1.Active:=True; DBChart1.Series[0].DataSource:=ADOQuery1; DBChart1.Series[0].XLabelSource:='FiledName'; DBChart1.Series[0].YValues.ValueSource:='FieldName'; 2.切换图表类... 阅读全文
posted @ 2007-12-14 12:43 BROTHER 阅读(9216) 评论(3) 推荐(1)
  2007年10月16日
摘要: 本月第一天:select dateadd(dd,-day(getdate())+1,getdate()) 本月最后一天:select dateadd(dd,-day(getdate()),dateadd(m,1,getdate())) 阅读全文
posted @ 2007-10-16 16:43 BROTHER 阅读(2577) 评论(0) 推荐(0)