当前位置:编程学习 > C#/ASP.NET >>

asp.net


  '--------------------------------------------

    If  sHolidayNum=""   Then  

        sHolidayNum=0
     end If  

   if ccur(sHolidayNum) = cint(sHolidayNum)   then
  
  zshowsumstr =ccur(sHolidayNum)& "天"
Else
    If  ccur(sHolidayNum)<1 Then 
               
                 zshowsumstr=ccur(sHolidayNum)& "小时"
    End If 
   zshowhour = (ccur(sHolidayNum)-cint(sHolidayNum))*8
 
   zshowsumstr = cint(sHolidayNum) & "天 "&zshowhour&"小时"

end If 

'------------------------------------------------------------------------
   有什么问题?为什么会出现   
  2天 -4小时     这样的结果

asp.net --------------------编程问答--------------------       求帮助      
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,