title: LoadRunner sprintf and lr_eval_string
body: <p>I am facing some issues that I'm certain is correct code, as I've seen it work before today, and without any changes made to the script, only a VUGen version change/upgrade.</p>
  
  <p>HP Virtual User Generator:: Version: 12.02.0.0</p>
  
  <pre><code>ClockingIDCount = atoi(lr_eval_string("{ClockingID_count}"));
  
  lr_output_message("CIDCount:%d",ClockingIDCount);
  lr_output_message("ClockingID1::%s",lr_eval_string("{ClockingID_1}"));
  
  for (i = 1; i &lt;= ClockingIDCount; i++) {
      sprintf(loopParam, "{ClockingID_%d}", i);
      lr_output_message("ClockingID: %s %s %s", loopParam, lr_eval_string("{loopParam}"), lr_eval_string(lr_eval_string("{loopParam}")));
  }
  </code></pre>
  
  <p><strong>Outputs:</strong></p>
  
  <pre><code>Action.c(120): CIDCount:21
  Action.c(121): Notify: Parameter Substitution: parameter "ClockingID_1" =  "6829888"
  Action.c(121): ClockingID1::6829888
  </code></pre>
  
  <p>But using the <code>sprintf</code> function to iterate over the items captured, returns;</p>
  
  <pre><code>Action.c(125): ClockingID: {ClockingID_1} {loopParam} {loopParam}
  </code></pre>
  
  <p><strong>Note</strong>: I'm aware the 3rd <code>%s</code> evaluation shouldn't work - was just a thought as I've seen it resolve things like this before.</p>