Hi this is my first post so hello everybody,
I've recently been exploring the uses of linq
to use for comparisons,but really need a bit of a kickstart.
Say for instance i have a listview populated with numbered names
and I want to put up a message box if certain conflicts arise
such as this:-
This string combination is ok:-
1 fred
1 fred
2 fred
4 barney
5 wilma
5 wilma
6 barney
6 barney
This string combination is Not:-
1 fred (!! conflict - 1 is already used )
1 barney (!! conflict - 1 is already used )
3 dino
2 barney (!! conflict - 2 is already used )
4 pebbles
6 betty
2 wilma (!! conflict - 2 is already used )
etc,etc
So to summarize, the prefix number can only have one unique name assigned to it,
and that unique combo can be used as often as you like.
I come across this type of critera all the time and am yet to
come up with a solution,maybe Linq could be the answer.
Thanks in advance for any help
Best Regards