Whilst adding Case IsA TypeName support, I also added Case lower To upper range syntax for Select Case.
In the next Objo Studio release this will work:
Select Case dayOfWeek
Case 0
name = "Sunday"
Case 1
name = "Monday"
Case 2 To 5
name = "Midweek"
Case 6
name = "Saturday"
Else
name = "Unknown"
End Select
Ranges are inclusive, so Case 2 To 5 matches 2, 3, 4, and 5. They use the same ordering rules as >= and <=.
You can also mix ranges with comma-separated alternatives:
Select Case value
Case 1 To 5, 10 To 15
Print("In range")
Else
Print("Outside range")
End Select
The usual Select Case rules still apply: the selector expression is evaluated once, cases are checked in order, and the first matching case wins.
So the next release will support ordinary values, comma-separated values, comparison cases like Case Is >= 90, type cases like Case IsA TextField, and inclusive range cases like Case 2 To 5.