Larry Brister
asked on
vb.net max number in comma seperated string
I have a process that will build a string...
I need the ability to match a "set of numbers" against that
Pick out the highest number
And remove the lower numbers from the original string
Example
Original String is "1,2,5,1002,1003,1004,1005 "
Match Set "1002,1003,1004"... in this 1004 is obviously the highest number
My revised original set is now "1,2,5,1004,1005"
I need the ability to match a "set of numbers" against that
Pick out the highest number
And remove the lower numbers from the original string
Example
Original String is "1,2,5,1002,1003,1004,1005
Match Set "1002,1003,1004"... in this 1004 is obviously the highest number
My revised original set is now "1,2,5,1004,1005"
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Hey guys... I truly thought I had already split the points.
No objection to awarding as suggested.
No objection to awarding as suggested.
Both solutions answered the question.
ASKER
I'll take a look as soon as I get back to my office