Maybe fill an array with the characters. The array only would hold a pointer to a string, though. Then loop through the array and loop inside the loop again to add a second letter. Something like:

Code:

var ArrayOfChars[6];

..

function SetupChars()
{
ArrayOfChars[0] = str_create("A");
ArrayOfChars[1] = str_create("a");
ArrayOfChars[2] = str_create("B");
ArrayOfChars[3] = str_create("b");
ArrayOfChars[4] = str_create("1");
ArrayOfChars[5] = str_create("2");
}

var i;
var k;

string first;
string second;
string final;


function CreateWords()
{
while(i != 6)
{
while(k != 6)
{
first = ptr_for_handle(ArrayOfChar[I]);
second = ptr_for_handle(ArrayOfChar[K]);
str_cat(first, second);
//so something with final word combination
final = first;
k += 1;
}
i += 1;
}
}




This is not tested (may not work), and straight of the top of my head. It is probably not a very good method, either. If you were using a long list of different characters it might be better to work with ASCII numbers and convert them back into strings rather than use strings straight off..

Hope it helps,
Adoado


Visit our development blog: http://yellloh.com