Hi:

I am trying to create a loop for a code. My loop is supposed to find all the combinations using the numbers 1 and 0 depending on the length of my string. For example if I set up my string to be 3 then the program should give me:

000, 001, 010, 100, 011, 101, 110, 111.

After this the code will use my code to calculate the maximum amount of binary numbers for each string. I have completed the second part, the problem I am having is setting up the loop to give me all the possible combinations. Also the problem is that I need to find the combination up to a string of 32 numbers. I can give you what code I have but I am not sure if that will help, I am just looking for input or ideas of how to set up the loop. Thanks for any comments. An of course I am not looking for you to give me a code, because I need to learn to do it, I am just looking for starting points.

Thanks

G.