title: Pass Variable to function in Loadrunner
body: <p>I have a ParameterArray called <code>TBname</code></p>
  
  <pre><code>web_reg_save_param_ex("ParamName=TBname",
          "LB=sysinfo.asp?s=",
          "RB=\" title=\"Systeminformationen",
          "Ordinal=all",
          LAST);
  </code></pre>
  
  <p>Now I want to save the values of <code>TBname</code> to a txt file. 
  When I compile the program I get the error </p>
  
  <blockquote>
    <p>"too many arguments to 'lr_eval_string'" </p>
  </blockquote>
  
  <p>since the function is expecting only one argument and he thinks that <code>i</code> is also an argument. How can I avoid that loadrunner thinks that <code>i</code> is an argument? </p>
  
  <pre><code>create_report()
  {
      int i= 0;
  
  
  if ((file_stream = fopen(filename, access_mode)) == NULL)  { 
      lr_error_message ("Cannot open or create %s", filename);   
      return -1;
  }
  
  for(i=0;i&lt;10;i++){
  
      TBnameposition = lr_eval_string("{TBname_%d}",i+1);
  
      fprintf(file_stream,"%s \n",TBnameposition);        
  }
  
  fclose(file_stream);
  
      return 0;
  }
  </code></pre>