General information
Category:
Coding, syntax and commands
>You have the right idea, but the keyword int is equal to System.Int32 and you convert it using Conver.ToInt16 and the max value for Int16 is 32767. Use Conver.ToInt32 instead:
Thanks, both.
Converting to an integer happens to work in this scenario, because both character strings are numeric.
However, what if either string contained letters. How would they be compared in C#?
TIA, Kevin
Previous
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