Thanks for the reply Matticus. The applicaiton that I am working on is Loadrunner.
This is how I approached for times where there were only 2 variables.
Code:
char imagekey1 [40];
char imagekey2 [40];
sprintf(imagekey1,"%s%s", lr_eval_string("{Bznext}"),lr_eval_string("0480099219")); //Bznext is a parameter defined in an external file.
sprintf(imagekey2,"%s%s", lr_eval_string("{Bznext}"),lr_eval_string("0480099220"));
lr_output_message("%s", imagekey1); //These do return a value
lr_output_message("%s", imagekey2);
Now I have 50 to 600 different variables that I need. From your advice, this is what I tried to do.
Code:
int i;
char imagekey[50];
for (i=1; i<=50; i++)
{
sprintf(imagekey[i],"%s%s", lr_eval_string("{Bznext}"),lr_eval_string("0480099219"));
lr_output_message("%s", imagekey[i]); // Returns a null value.
}
Thoughts??