JamesBowen
19+ years progress programming and still learning.
Hi all.
I have a small problem and for some unknown reason I just can't get my head around in coming up with a solution.
I need to come up with a function which will generate values of every permutation of a given "Letters" and "Length".
Example would be "ABCD" and the length is 8:
"AAAAAAAA"
"AAAAAAAB"
"AAAAAAAC"
"AAAAAAAD"
"AAAAAABA"
"AAAAAABB"
"AAAAAABC"
"AAAAAABD"
"AAAAAACA"
...........
"DDDDDDDD"
For the life of me, I just can't think how to do the code. I have found some PHP code but I coming up with problems in trying to convert PHP into ABL.
Can anyone help me out. Thanks.:biggrin:
James.
Here is the sample PHP code:
http://www.weberdev.com/get_example-3596.html
I have a small problem and for some unknown reason I just can't get my head around in coming up with a solution.
I need to come up with a function which will generate values of every permutation of a given "Letters" and "Length".
Example would be "ABCD" and the length is 8:
"AAAAAAAA"
"AAAAAAAB"
"AAAAAAAC"
"AAAAAAAD"
"AAAAAABA"
"AAAAAABB"
"AAAAAABC"
"AAAAAABD"
"AAAAAACA"
...........
"DDDDDDDD"
For the life of me, I just can't think how to do the code. I have found some PHP code but I coming up with problems in trying to convert PHP into ABL.
Can anyone help me out. Thanks.:biggrin:
James.
Here is the sample PHP code:
http://www.weberdev.com/get_example-3596.html