Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange String Comparisons
Message
From
06/01/2004 15:27:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Strange String Comparisons
Miscellaneous
Thread ID:
00864339
Message ID:
00864339
Views:
56
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
Map
View

Click here to load this message in the networking platform