当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 比如: unsigned char hz[2][18]={ {"我明白你是什么意思"}, {"你的意思到底是什么"} }; unsigned char result1[]; 我想把第二行的字符串拷到一个数组里,要用strcpy函数,怎么做? strcpy(result,hz[1]); strcpy(result,(unsigned char *)hz......
 ·自动生成控件排列问题    »显示摘要«
    摘要: for(int m=0;m<3;m++) { textbox tb=new textbox(); tb.id="tb"+m; tb.text="tb"+m; tablecell tc=new tablecell(); tc.controls.add(tb); tabl......


写一个简单的函数

在同一个asp中要多次用到它,但是里面只是参数name不同。所以想写个函数  
  然后把参数传进去。  
   
          cmd="select   *   from   table1   where   id1="+name+""  
          set   rs1=conn.execute(cmd)  
          if   not   rs1.eof   then  
                cmd="update     table2   set   isbool=Fwhere   id1="+name+""  
                conn.execute(cmd)  
          end   if

NO.1   作者: ShiningstarHu

Private   Sub   theFunction(Byval   name)  
   
      cmd="select   *   from   table1   where   id1="+name+""  
      set   rs1=conn.execute(cmd)  
      if   not   rs1.eof   then  
          cmd="update     table2   set   isbool=Fwhere   id1="+name+""  
          conn.execute(cmd)  
      end   if  
  End   Sub  
   
  这样调用就可以了:  
  CALL   theFunction("123")  
   
 


 ·如何得到重复概率低的值    »显示摘要«
    摘要: 要求不受安全权限限制, 但如 浏览器,操作系统 这类值相同的太多。 有没有概率低一点的 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE