| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> delphi >> Delphiwe bian xie gui fan

Delphiwe bian xie gui fan

2006-12-17 09:48:34 编辑來源:互联网 评论
 
 
 
本文为【Delphiwe编写规范】的拼音翻译版
  Delphiwe bian xie gui fan
  
  Delphiwe bian xie gui fan cheng xu bian xie gui fan
  1、 bian liang sheng ming d
   suo you de bian liang bu  lun lei xing , yun yi v kai tou , ru :
  var vWorkerName:string;
  vYear:integer;
  vDate:tdate;
   _recordset dui xiang de qian zhui wei vrs。
   te shu de bian liang :vSql: ji ben shang suo you de SQL yu ju yun xian yong bian liang vSql bin zhi , ru :
  var vSql:string;
   begin
   vsql:=’select a.fdworker ‘;
   vsql:=vsql+’ from tabworker a ‘;
   end;
  kong jian ming ming
  lei qian zhui shi li
  TEdit ed edWorkerNo
  TDBGrid grd grdWorker
  TCombobox cbo cboWorker
  TDateTimePicker dp dpDate
  TButton c cOk cCancel
  TCheckBox chk chkCancel
  TSpeedButton sb sbWorker
  TClientDataSet cln clnWorker
  TDataSource ds dsWorker
  TAdoDataSet adods adodsWorker
  TPanel pan panTop
  TForm frm frmWorker
  TDataSetProvider pvd pvdWorker
  TTreeview trv trvRawType
  TListview lst lstWorker
  TPageControl pc pcWorkerInformation
  TImage img imgWorker
  TMemo ed edMemo
  2、 han shu ji guo cheng de ming ming 3、
   han shu de qian zhui yong f
  li ru : chu li shu ju jian cha de han shu :function fCheckData:boolean;
   guo cheng de qian zhui yong p
  li ru : chu li gong ren li zhi de guo cheng :procedure pWorkerLeave;
  ming ming gui ze
   suo you bian liang huo kong jian de ming ming  yun cai qu ying wen yi yi ming ming , bing qie jin liang bu  yao yong suo xie 。
  li ru : dui shu ru gong ren xing ming de TEdit de ming ming wei :edWorkerName
  er bu yao ming ming wei :edWN deng suo xie xing shi
  
   shu ju biao de qian zhui wei tab, zi duan de qian zhui wei fd。
  li ru : gong ren biao de ming cheng wei :tabworker
  gong ren bian hao de zi duan wei :fdworkerno
  shu ju ku cao zuo fang fa
   cao zuo shu ju ku ( xuan ze 、 cha ru 、 geng xin 、 shan chu ): ji ben shang yong SQL yu ju lai cao zuo shu ju ku , bi mian yong Data Aware lei de kong jian lai cao zuo shu ju ku 。
  li ru : cha ru yi tiao sheng chan ji lu :
   var vSql:string;
   vWorkerID:string;
   vProductNum:string;
   begin
   xxxxxx;
   ………;
   vsql:=’insert into tabproduct (fddate,fdworkerid,fdproductnum) values(‘;
   vsql:=vsql+vinfo.vdbsqldate(date);
   vsql:=vsql+’,’+(vWorkerID);
   vsql:=vsql+’,’+(vProductNum);
   vsql:=vsql+’)’;
   vinfo.execute(vsql);
   end;
  * zhu :vinfo dai biao yi ge zi ding yi lei TInfo de yi ge shi li , li mian feng zhuang le ge zhong han shu , ju ti nei rong zai hou mian you shuo ming 。
   yong TDBGrid xian shi shu ju de fang fa :
  1. shi yong TDBGrid TDataSource TClientDataSet TDataSetProvider TAdoDataSet kong jian 。
  2. lian jie fang shi wei TDBGrid->TDataSource->TClientDataSet->TDataSetProvider->TAdoDataSet
  3. xian yong _recordset dui xiang lai jie shou shu ju ,4. ran hou ba _recordset dui xiang bin gei TAdoDataSet kong jian ,5. zai tiao yong TClientDataSet de Close fang fa 、Open fang fa 。
   duo yong hu cao zuo shu ju de chu li : tong chang ba yao cao zuo de biao jin xing suo ding , suo ding fang fa wei yong TInfo lei de pLockTable fang fa 。
  shu ju he fa xing jian cha fang fa
   tong chang zai yao bao cun shu ju de shi hou zhi qian jin xing shu ju he fa xing de jian cha , bu  yao zai shu ru de shi hou jian cha shu ju de he fa xing 。
  jian cha bao kuo :
  1. jian cha shi fou shi zheng shu ;
  yong lei TInfo de fIsInt han shu pan duan 。
  2. jian cha shi fou shi fu dian shu ;
  yong lei TInfo de fIsFloat han shu pan duan 。
  3. jian cha shi fou shi ri qi ;
  ri qi yong TDateTimePicker lai jin xing shu ru , tong chang bu yong jian cha 。
  4. jian cha shi fou mei you shu ru ;
  yong lei TInfo de flen han shu pan duan 。
  5. shu ju wan zheng xing de jian cha ( jian cha nei rong hui zai kai fa wen dang zhong shuo ming );
  6. shu ju luo ji xing de jian cha ( jian cha nei rong hui zai kai fa wen dang zhong shuo ming );
   dui yu zi fu lei xing de shu ju , zhu yi yi ding yao yong trim han shu qing chu qian hou de kong ge 。
  lei TInfo de shuo ming
  Tinfo lei feng zhuang le yi xie ji ben de han shu 、 guo cheng ji chang shu :
   han shu ji guo cheng :
  6. function fIsFloat(vData:string):boolean;
  7. function fIsInt(vData:string):boolean;
  8. function fLen(vData:string):boolean;
  9. procedure pBeginTrans;// shi wu kai shi
  10. procedure pCommitTrans;// shi wu ti jiao
  11. procedure pRollBack;// shi wu hui gun
  12. procedure execute(const vSql:string;var vRs:_recordset;vAbort:boolean=false);overload;
  an quan de SQL zhi xing han shu 1,vSql wei yao zhi xing de SQL yu ju ,vrs wei jie shou fan hui zhi de _recordset dui xiang ,vAbort biao shi dang fa sheng shu yu lian jie ( wang luo zhong duan ) de cuo wu shi , shi fou zhong zhi chu li 。 tong chang zhi xing bao han zai yi ge shi wu li de SQL yu ju shi yong true, er bu zai shi wu li de SQL yu ju bu yong zhi ding 。
  li ru : var vSql:string;
   vrsWorker
   begin
   vsql:=’select a.fdworkerno,a.fdworkername ‘;
   vsql:=vsql+’ from tabworker a ‘;
  vinfo.execute(vsql,vrsworker);// zhe ju mei you zhi ding vabort, ze que sheng wei false
  { shang mian zhe yi ju zai zhi xing , ru guo wang luo zhong duan , dao zhi bu neng lian jie dao shu ju ku , ze hui jin xing ti shi shi fou yao chong shi , ru guo bu yao chong shi , ze tui chu zheng ge xi tong ; ru guo chong shi , ze hui chong shi lian jie dao shu ju ku , dan ru guo reng ran bu neng lian jie , ze chong fu jin xing ti shi zhi dao lian jie shang huo you yong hu qu xiao lian jie yi tui chu xi tong }
  vinfo.execute(vsql,vrsworker,true);// zhe ju zhi ding vabort
  { shang mian zhe yi ju zai zhi xing , ru guo wang luo zhong duan , dao zhi bu neng lian jie dao shu ju ku , ze hui jin xing ti shi bu neng lian jie dao shu ju ku , suo yi zhi xing zhong zhi 。 bing hui chang shi lian jie dao shu ju ku 。 ru guo bu neng lian jie , ze ti shi shi fou yao chong shi , ru guo bu yao chong shi , ze tui chu zheng ge xi tong ; ru guo chong shi , ze hui chong shi lian jie dao shu ju ku , dan ru guo reng ran bu neng lian jie , ze chong fu jin xing ti shi zhi dao lian jie shang huo you yong hu qu xiao lian jie yi tui chu xi tong }
   end;
  
  13. procedure execute(const vSql:string;vAbort:boolean=false);overload;
  an quan de SQL zhi xing han shu 2, yu 1 de qu bie zai yu 1 you fan hui shu ju ji 。
   chang shu :
  1. vDateStr: dang qian ji suan ji de ri qi ge shi ,2. ru guo dang qian ji suan ji de ge shi wei 2 wei nian fen ,3. ze zhuan hua wei 4 wei nian fen 。
  li ru : dang qian ji suan ji de duan ri qi ge shi wei ’yy-mm-dd’, ze vDateStr wei ’yyyy-mm-yy’。
  4. vCurrentUserNo: dang qian deng lu de cao zuo yuan de bian hao 。
  5. vCurrentUserName: dang qian deng lu de cao zuo yuan de ming 6. cheng 。【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
Delphiwe bian xie gui fan Delphiwe bian xie gui fan cheng xu bian xie gui fan 1、 bian liang sheng ming d  suo you de bian liang bu  lun lei xing , yun yi v kai tou , ru : var vWorkerName:string; vYear:integer; vDate:tdate;  _recordset dui xiang de qian zhui wei vrs。  te shu de bian liang :vSql: ji ben shang suo you de SQL yu ju yun xian yong bian liang vSql bin zhi , ru : var vSql:string; begin vsql:=’select a.fdworker ‘; vsql:=vsql+’ from tabworker a ‘; end; kong jian ming ming lei qian zhui shi li TEdit ed edWorkerNo TDBGrid grd grdWorker TCombobox cbo cboWorker TDateTimePicker dp dpDate TButton c cOk cCancel TCheckBox chk chkCancel TSpeedButton sb sbWorker TClientDataSet cln clnWorker TDataSource ds dsWorker TAdoDataSet adods adodsWorker TPanel pan panTop TForm frm frmWorker TDataSetProvider pvd pvdWorker TTreeview trv trvRawType TListview lst lstWorker TPageControl pc pcWorkerInformation TImage img imgWorker TMemo ed edMemo 2、 han shu ji guo cheng de ming ming 3、  han shu de qian zhui yong f li ru : chu li shu ju jian cha de han shu :function fCheckData:boolean;  guo cheng de qian zhui yong p li ru : chu li gong ren li zhi de guo cheng :procedure pWorkerLeave; ming ming gui ze  suo you bian liang huo kong jian de ming ming  yun cai qu ying wen yi yi ming ming , bing qie jin liang bu  yao yong suo xie 。 li ru : dui shu ru gong ren xing ming de TEdit de ming ming wei :edWorkerName er bu yao ming ming wei :edWN deng suo xie xing shi  shu ju biao de qian zhui wei tab, zi duan de qian zhui wei fd。 li ru : gong ren biao de ming cheng wei :tabworker gong ren bian hao de zi duan wei :fdworkerno shu ju ku cao zuo fang fa  cao zuo shu ju ku ( xuan ze 、 cha ru 、 geng xin 、 shan chu ): ji ben shang yong SQL yu ju lai cao zuo shu ju ku , bi mian yong Data Aware lei de kong jian lai cao zuo shu ju ku 。 li ru : cha ru yi tiao sheng chan ji lu : var vSql:string; vWorkerID:string; vProductNum:string; begin xxxxxx; ………; vsql:=’insert into tabproduct (fddate,fdworkerid,fdproductnum) values(‘; vsql:=vsql+vinfo.vdbsqldate(date); vsql:=vsql+’,’+(vWorkerID); vsql:=vsql+’,’+(vProductNum); vsql:=vsql+’)’; vinfo.execute(vsql); end; * zhu :vinfo dai biao yi ge zi ding yi lei TInfo de yi ge shi li , li mian feng zhuang le ge zhong han shu , ju ti nei rong zai hou mian you shuo ming 。  yong TDBGrid xian shi shu ju de fang fa : 1. shi yong TDBGrid TDataSource TClientDataSet TDataSetProvider TAdoDataSet kong jian 。 2. lian jie fang shi wei TDBGrid->TDataSource->TClientDataSet->TDataSetProvider->TAdoDataSet 3. xian yong _recordset dui xiang lai jie shou shu ju ,4. ran hou ba _recordset dui xiang bin gei TAdoDataSet kong jian ,5. zai tiao yong TClientDataSet de Close fang fa 、Open fang fa 。  duo yong hu cao zuo shu ju de chu li : tong chang ba yao cao zuo de biao jin xing suo ding , suo ding fang fa wei yong TInfo lei de pLockTable fang fa 。 shu ju he fa xing jian cha fang fa  tong chang zai yao bao cun shu ju de shi hou zhi qian jin xing shu ju he fa xing de jian cha , bu  yao zai shu ru de shi hou jian cha shu ju de he fa xing 。 jian cha bao kuo : 1. jian cha shi fou shi zheng shu ; yong lei TInfo de fIsInt han shu pan duan 。 2. jian cha shi fou shi fu dian shu ; yong lei TInfo de fIsFloat han shu pan duan 。 3. jian cha shi fou shi ri qi ; ri qi yong TDateTimePicker lai jin xing shu ru , tong chang bu yong jian cha 。 4. jian cha shi fou mei you shu ru ; yong lei TInfo de flen han shu pan duan 。 5. shu ju wan zheng xing de jian cha ( jian cha nei rong hui zai kai fa wen dang zhong shuo ming ); 6. shu ju luo ji xing de jian cha ( jian cha nei rong hui zai kai fa wen dang zhong shuo ming );  dui yu zi fu lei xing de shu ju , zhu yi yi ding yao yong trim han shu qing chu qian hou de kong ge 。 lei TInfo de shuo ming Tinfo lei feng zhuang le yi xie ji ben de han shu 、 guo cheng ji chang shu :  han shu ji guo cheng : 6. function fIsFloat(vData:string):boolean; 7. function fIsInt(vData:string):boolean; 8. function fLen(vData:string):boolean; 9. procedure pBeginTrans;// shi wu kai shi 10. procedure pCommitTrans;// shi wu ti jiao 11. procedure pRollBack;// shi wu hui gun 12. procedure execute(const vSql:string;var vRs:_recordset;vAbort:boolean=false);overload; an quan de SQL zhi xing han shu 1,vSql wei yao zhi xing de SQL yu ju ,vrs wei jie shou fan hui zhi de _recordset dui xiang ,vAbort biao shi dang fa sheng shu yu lian jie ( wang luo zhong duan ) de cuo wu shi , shi fou zhong zhi chu li 。 tong chang zhi xing bao han zai yi ge shi wu li de SQL yu ju shi yong true, er bu zai shi wu li de SQL yu ju bu yong zhi ding 。 li ru : var vSql:string; vrsWorker begin vsql:=’select a.fdworkerno,a.fdworkername ‘; vsql:=vsql+’ from tabworker a ‘; vinfo.execute(vsql,vrsworker);// zhe ju mei you zhi ding vabort, ze que sheng wei false { shang mian zhe yi ju zai zhi xing , ru guo wang luo zhong duan , dao zhi bu neng lian jie dao shu ju ku , ze hui jin xing ti shi shi fou yao chong shi , ru guo bu yao chong shi , ze tui chu zheng ge xi tong ; ru guo chong shi , ze hui chong shi lian jie dao shu ju ku , dan ru guo reng ran bu neng lian jie , ze chong fu jin xing ti shi zhi dao lian jie shang huo you yong hu qu xiao lian jie yi tui chu xi tong } vinfo.execute(vsql,vrsworker,true);// zhe ju zhi ding vabort { shang mian zhe yi ju zai zhi xing , ru guo wang luo zhong duan , dao zhi bu neng lian jie dao shu ju ku , ze hui jin xing ti shi bu neng lian jie dao shu ju ku , suo yi zhi xing zhong zhi 。 bing hui chang shi lian jie dao shu ju ku 。 ru guo bu neng lian jie , ze ti shi shi fou yao chong shi , ru guo bu yao chong shi , ze tui chu zheng ge xi tong ; ru guo chong shi , ze hui chong shi lian jie dao shu ju ku , dan ru guo reng ran bu neng lian jie , ze chong fu jin xing ti shi zhi dao lian jie shang huo you yong hu qu xiao lian jie yi tui chu xi tong } end; 13. procedure execute(const vSql:string;vAbort:boolean=false);overload; an quan de SQL zhi xing han shu 2, yu 1 de qu bie zai yu 1 you fan hui shu ju ji 。  chang shu : 1. vDateStr: dang qian ji suan ji de ri qi ge shi ,2. ru guo dang qian ji suan ji de ge shi wei 2 wei nian fen ,3. ze zhuan hua wei 4 wei nian fen 。 li ru : dang qian ji suan ji de duan ri qi ge shi wei ’yy-mm-dd’, ze vDateStr wei ’yyyy-mm-yy’。 4. vCurrentUserNo: dang qian deng lu de cao zuo yuan de bian hao 。 5. vCurrentUserName: dang qian deng lu de cao zuo yuan de ming 6. cheng 。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
情人节的清纯女生(9)
情人节的清纯女生(8)
情人节的清纯女生(7)
情人节的清纯女生(6)
山东蓬莱海边组照
一探哲蚌 II
一探哲蚌 III
古长城的一角
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有