J
Jose
Hi all,
I have a select list that can contain between 1 and N items. I would
like to get all possible permutations of the list, i.e. combinations
that a user might select. So for example if my list has the following
options: Red, Yellow, Blue I would like to get the following list:
Red
Yellow
Blue
Red;Yellow
Red;Blue
Yellow;Blue
Red;Yellow;Blue
I don't want to get any repititions i.e. the permutation "Red;Blue" is
equal to "Blue;Red" (in my eyes!!)
Can anybody help?
Thanks in advance,
Jose
I have a select list that can contain between 1 and N items. I would
like to get all possible permutations of the list, i.e. combinations
that a user might select. So for example if my list has the following
options: Red, Yellow, Blue I would like to get the following list:
Red
Yellow
Blue
Red;Yellow
Red;Blue
Yellow;Blue
Red;Yellow;Blue
I don't want to get any repititions i.e. the permutation "Red;Blue" is
equal to "Blue;Red" (in my eyes!!)
Can anybody help?
Thanks in advance,
Jose