General information
Title:
Strange String Comparisons
Has anyone seen this? :
Dim case_no as string = "04"
In the VS debugger,
? "04" < "30" returns True
? case_no < "30" returns False
Using the StrComp function, though, works as expected whether you use a literal string or a variable on the left hand side of the comparison.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only