|
-
Feb 21st, 2006, 06:51 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] String < AnotherString?
I have to tell if one string is less than another (e.g. First string is apple and second string is banana. first string will be less than second string because it comes before it in the alphabet. (at least i think that's how it works)).
It seems I can't do this with C# because it just gives
Operator '<' cannot be applied to operands of type 'string' and 'string'
which I seem to have found that you cannot do in C#.
So, how can you tell if one string would come alphabetically before another?
Thanks. Help will be greatly appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|