Here's another idea...

Code:

string the_question;
string tStr;
function select_question(number)
{
str_for_num(tStr, number);
str_cpy(the_question, "str_cpy(tStr, question_");
str_cat(the_question, tStr);
str_cat(the_question, ");");
execute(the_question);
str_cpy(the_question, tStr);
}




This will work with any number of strings, without using a ton of "if" statements.

Last edited by xXxGuitar511; 02/27/07 15:21.

xXxGuitar511
- Programmer