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

 

 ·cvs中关于同步开发的问题    »显示摘要«
    摘要: 公司现在正准备完善配置管理,想要采用cvs作为版本管理系统 但是cvs是一个同步开发版本管理系统,我们又不想使用同步开发 即:一个开发人员检出后,其他开发人员就不可以在检出 我在网上查了一些资料,在linux下利用shell script能过解决这个问题, 但是还是不太明白 各位大侠能不能给予指点,不胜感激,如果有能在cvsnt下解决这个问题的也行 谢谢先!!!!!!!!!!!!!!!!!......
    摘要: dim rs,sql dim classid dim classname if request("classid")<>"" then classid=request("classid") else classid=1 end if set rs = server.createobject(&quo......


关于session数组的问题

现在我有一个变量为ss  
  我想把文件名ss这个变量取得的值组成一个数组然后再把它传给session  
  最后实现把文件名全部列出来  
  有点象购物袋的样子  
  高手们能告诉我吗?  
 

NO.1   作者: gshope

在给SS赋值的时候,文件名之间用;隔开,最后:  
  aa=split(session("ss"),";")  
  for   i=0   to   ubound(aa)  
          response.write   aa(i)  
  next  
 

NO.2   作者: maconelxp

首先定义一个数组变量  
  ss=request("ss")  
  dim   filename  
  redim   filename(0)  
  filename(0)=id  
  if   session("first")=""   then  
          session("first")="have"  
  session("filename")=filename  
  end   if  
  response.write   "<br>"&ubound(session("filename"))  
  filename=session("filename")  
  redim   preserve   filename(ubound(session("filename"))+1)  
  filename(ubound(session("filename"))+1)=ss  
  session("filename")=filename  
  for   i=0   to   ubound(session("filename"))  
  response.write   "<font   color=red><br>a"&session("filename")(i)&"</font>"  
  next

NO.3   作者: possible_Y

aa为数组  
  把aa存到session中:session("buy")=aa  
   
  在其他页面用该数组:  
  bb=session("buy")  
  for   i=0   to   Ubound(bb)  
    Response.Write   bb(i)    
  next  
 

NO.4   作者: guoqd

用一個分隔符,一般用別人不會用到的,如&*&來分隔,你將每次取的值加到session變量中時用分隔符分隔起來,然後split(session變量,"&*&"),再用for   i=0   to   ubound(session變量arr)就行了

NO.5   作者: yjyeah

<%  
  dim   a()  
  redim   a(4)  
  a(1)="1"  
  a(2)="2"  
  a(3)="3"  
  session("aa")=a  
  用时把session的值传给一个数组  
  b=session("aa")  
  for   i=1   to   4  
  response.write   b(i)  
  next  
   
  %>  
   
  运行结果:123

NO.6   作者: maconelxp

给你一个没有重复的  
  ss=obj.savefile("file1")  
  dim   filename  
  dim   add  
  add=true  
  redim   filename(0)  
  filename(0)=id  
  if   session("first")=""   then  
          session("first")="have"  
  session("filename")=filename  
  end   if  
  response.write   "<br>"&ubound(session("filename"))  
  filename=session("filename")  
  for   i=0   to   ubound(session("filename"))  
        if   session("filename")(i)=id   then    
              add=false  
              exit   for  
  end   if  
  next  
  if   add   then  
        redim   preserve   filename(ubound(session("filename"))+1)  
        filename(ubound(session("filename"))+1)=ss  
        session("filename")=filename  
  end   if  
  for   i=0   to   ubound(session("filename"))  
  response.write   "<font   color=red><br>a"&session("filename")(i)&"</font>"  
  next

NO.7   作者: Andyken

filename=obj.savefile("file1")  
    if   trim(session("filename"))=""   or   isnull(session("filename"))=true   then为空直接添加  
        session("filename")=filename  
    elseif   instr(session("filename"),"$")   then说明session中有两个以上文件名  
          if   instr(session("filename"),filename)=0   then判断所选文件是否已经存在    
            session("filename")=session("filename")&"$"&filename不存在则添入session("filename")中  
          end   if    
  end   if    
  printf   session("filename")  
    dim   Arr    
    Arr=split(session("filename"),"$",-1,1)  
    for   i=0   to   Ubound(Arr)  
        response.write   "File["&   i   &"]="&Arr(i)&"<br>"  
      next  
   
   
     
 


    摘要: 我觉得现在的什么oa系统都是大同小异,你是怎么看的呢,你觉得怎么样才是有自己的特色呢?大家进来讨论讨论! 我看看好几个oa系统,都号称怎么样怎么样,但是我觉得他们的好像差不多,无论是外观(当然不是完全一样),模块划分,我觉得真的是差不多, 现在 假如让你开发一套oa系统,面对着充斥着大同小异的oa,你觉得怎么样才能算有自己的特色呢,面对客户怎么样让他觉得你的oa是有特点,别人做不到,或者想......
» 本期热门文章:

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