Thanks, Ill have to look at it when im not so tired.

I have a script that does basically this but is javascript and cant figure out how to convert it over. Heres the code...

Code:
 

var current = "";
var set = new Array('a', 'B', '3', '-');

function init()
{
for (var i = 1; i <= set.length; ++i)
go(0, i);
}

function go(pos, maximum)
{
if (pos == maximum)
{
document.write(' current );
return;
}

for (var i = 0; i < set.length; ++i) {
var tmp = current;
current += set[i];
go(pos + 1, maximum);
current = tmp;
}
}



The above code generates a list like so

a
B
3
-
aa
aB
a3

and so on but is for javascript.
Again thanks for all and any help.


http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.