Keith,
I guess that the literal strings are not cast into full fledged string objects by the CLR when there is no property or method access in the code.
What is the result if the object appears on the right side of the expression?
>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.
Previous
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