Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange String Comparisons
Message
De
06/01/2004 15:27:24
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Strange String Comparisons
Divers
Thread ID:
00864339
Message ID:
00864339
Vues:
54
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform