这个能不能用循环语句?想做个时间差的显示,显示时:分下面能否用循环语句,Geth=rs("tihuo_time")Gethh=now()Getsnn=DateDiff("n",Geth,Gethh)if Getsnn60 thenGetcnn=DateDiff("n",Geth,Gethh)-60Getchh=1end if if Getsnn>120 thenGe

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 03:06:23
这个能不能用循环语句?想做个时间差的显示,显示时:分下面能否用循环语句,Geth=rs(120 thenGe" />

这个能不能用循环语句?想做个时间差的显示,显示时:分下面能否用循环语句,Geth=rs("tihuo_time")Gethh=now()Getsnn=DateDiff("n",Geth,Gethh)if Getsnn60 thenGetcnn=DateDiff("n",Geth,Gethh)-60Getchh=1end if if Getsnn>120 thenGe
这个能不能用循环语句?
想做个时间差的显示,显示时:分
下面能否用循环语句,
Geth=rs("tihuo_time")
Gethh=now()
Getsnn=DateDiff("n",Geth,Gethh)
if Getsnn60 then
Getcnn=DateDiff("n",Geth,Gethh)-60
Getchh=1
end if
if Getsnn>120 then
Getcnn=DateDiff("n",Geth,Gethh)-120
Getchh=2
end if
if Getsnn>180 then
Getcnn=DateDiff("n",Geth,Gethh)-180
Getchh=3
end if
if Getsnn>240 then
Getcnn=DateDiff("n",Geth,Gethh)-240
Getchh=4
end if
if Getsnn>300 then
Getcnn=DateDiff("n",Geth,Gethh)-300
Getchh=5
end if
if Getsnn>360 then
Getcnn=DateDiff("n",Geth,Gethh)-360
Getchh=6
end if
if Getsnn>420 then
Getcnn=DateDiff("n",Geth,Gethh)-420
Getchh=7
end if
if Getsnn>480 then
Getcnn=DateDiff("n",Geth,Gethh)-480
Getchh=8
end if
if Getsnn>540 then
Getcnn=DateDiff("n",Geth,Gethh)-540
Getchh=9
end if
if Getsnn>600 then
Getcnn=DateDiff("n",Geth,Gethh)-600
Getchh=10
end if
if Getsnn>660 then
Getcnn=DateDiff("n",Geth,Gethh)-660
Getchh=11
end if
if Getsnn>720 then
Getcnn=DateDiff("n",Geth,Gethh)-720
Getchh=12
end if
if Getsnn>780 then
Getcnn=DateDiff("n",Geth,Gethh)-780
Getchh=13
end if
if Getsnn>840 then
Getcnn=DateDiff("n",Geth,Gethh)-840
Getchh=14
end if
if Getsnn>900 then
Getcnn=DateDiff("n",Geth,Gethh)-900
Getchh=15
end if
if Getsnn>960 then
Getcnn=DateDiff("n",Geth,Gethh)-960
Getchh=16
end if
if Getsnn>1020 then
Getcnn=DateDiff("n",Geth,Gethh)-1020
Getchh=17
end if
if Getsnn>1080 then
Getcnn=DateDiff("n",Geth,Gethh)-1080
Getchh=18
end if
if Getsnn>1140 then
Getcnn=DateDiff("n",Geth,Gethh)-1140
Getchh=19
end if
if Getsnn>1200 then
Getcnn=DateDiff("n",Geth,Gethh)-1200
Getchh=20
end if
if Getsnn>1200 then
Getcnn=0
Getchh=DateDiff("h",Geth,Gethh)
end if
Getch=Getchh&" :"&Getcnn
在ASP中

这个能不能用循环语句?想做个时间差的显示,显示时:分下面能否用循环语句,Geth=rs("tihuo_time")Gethh=now()Getsnn=DateDiff("n",Geth,Gethh)if Getsnn60 thenGetcnn=DateDiff("n",Geth,Gethh)-60Getchh=1end if if Getsnn>120 thenGe
if Getsnn<60 then  Getcnn=DateDiff("n",Geth,Gethh)  Getchh=0  end if  
for i=1 to 20
if Getsnn>60*i then  Getcnn=DateDiff("n",Geth,Gethh)-60*i  Getchh=i
 end if
next

这个能不能用循环语句?想做个时间差的显示,显示时:分下面能否用循环语句,Geth=rs(tihuo_time)Gethh=now()Getsnn=DateDiff(n,Geth,Gethh)if Getsnn60 thenGetcnn=DateDiff(n,Geth,Gethh)-60Getchh=1end if if Getsnn>120 thenGe 以下叙述正确的是( )A、 do-while语句构成的循环不能用其它语句构成的循环代替.B、 do-while语句构成的循环只能用break语句退出.C、 用do-while语句构成的循环,在while后的表达式为非零时结束 什么样循环语句是无限不循环 找出100~200之间能同时被3和5整除的数,要求:用FOr next循环语句找出满足条件数显示到图片框中 C语言关于do-while的问题.以下叙述中正确的是A do-while 语句构成的循环不能用其他语句构成的循环来代替D 用do-while语句构成循环时,只有在while后的表达式为零时结束循环为什么D是对的.难道brea 高一数学必修3算法输入语句的提示内容能不能用中文 利用循环语句,显示下列由*号组成的矩阵界面为什么会是这样的? 关于VFP的循环控制语句FOR语句的循环控制 不是很明白``最好能加上一些例子. glutMainLoop(),这个函数是让哪部分语句无限循环的?为什么要循环呢? for循环语句能用于循环次数不确定的情况吗? 作文题目能不能用这个标点符号?就这个标点符号能不能用?爱·美好中间的小点能不能用? 对于go语句和if语句构成的循环,不能使用break退出.这个说法对么? break语句的作用是()A:退出循环B:继续循环C:继续循环,但不执行本次循环D:对循环没作用 for(;*p1++=*p2++;);这个循环语句是死循环呢,还是可以结束的循环呢? continue语句的作用是()A:退出循环 B:继续循环C:继续循环,但本次循环不执行continue语句后面的循环体语句D:对循环没作用 求VB的循环语句 关于程序设计的循环语句~ for 循环语句的使用方法