farshad Posted September 12, 2003 Posted September 12, 2003 Hi, If a string contaings numbers, then how can I get the biggest number from this string? THanks Quote Farshad
*Experts* Nerseus Posted September 12, 2003 *Experts* Posted September 12, 2003 Is the string comma delimited, or just a bunch of digits? If it's like "1, 4, 123, 9, 456" then you could use the Split method and then loop to find the max. If the string looks like "1458273" and you want to find the biggest digit, then loop through the chars of the string to find the max. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.