我很少使用 select case,但认为它适合此功能。第二种和第三种情况如何比较?编译器不喜欢该代码。在 Select Case 中不能以这种方式进行比较吗?
Private Shared Function TakeValue(ByVal interval As Integer) As Integer
Select Case interval
Case Is <= 15
Return 1440
***Case Is > 15 And <=30
Return 720
Case is > 30 And <=60
Return 528***
Case Else
Return 400
End Select
End Function