I have to create a fuction that accepts 6 parameters (all bit (0/1) fields and returns a string. I have to account for every permutation. There are obviously 2^6 = 64 possible permutations.
ex.
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0 0 1 0
etc....
Is there a better way to do this than 64 seperate statements?
Thanks in advance.
-------------------------------------------
When you have spent all day trying to work through a problem, it is best to take a step back, reevaluate the problem, then work on the next project and never let the old one show its ugly face again!!
ex.
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0 0 1 0
etc....
Is there a better way to do this than 64 seperate statements?
Thanks in advance.
-------------------------------------------
When you have spent all day trying to work through a problem, it is best to take a step back, reevaluate the problem, then work on the next project and never let the old one show its ugly face again!!