I have a program that assigns ASCII values based on a number. In a particular case, the value is '27', I know because I have it Serout showing me this.
BUT, the Case statement is not catching it.. It should be falling into the "do a different thing" bucket, but it does not..
In this example, TC1 = 27:
Select Case TC1
case 0
TracID1 = " "
case TC1 > 0 and TC1 < 27
Do One thing
case TC1 >= 27 and TC1 < 37
Do a different thing
case 37
TracID1 = ":"
case 38
TracID1 = "."
case else
TracID1 = "$"
End Select
Since the value being compared is in fact "27" why does it fall all the way down to ELSE, and assign it a value of "$"???
What's wrong with the logic?
Tom
Bookmarks