areyouok什么意思:在asp,vb 中 select case 语句中 case 50到100这间 这名话怎么表示

来源:百度文库 编辑:高校问答 时间:2024/04/28 20:17:33
Function nickname (score)
select case score
case cint(score)<60
temp="不及格"
case cint(score)>=60 and cint(score)<70
temp="及格"
case cint(score)>=70 and cint(score)<80
temp="及格"
end select
nickname=temp&"ddd"
end function
response.Write nickname(50)

为什么这样写还是不行呢?

case 50 to 100 还是不行的

case 50 to 100

case var>=50 and var<=100