title: how to concatenate values to the string
body: <p>i want to cancatenate strings with comma as a separator and result must be stored in string...
  comma=@",";
  for(i=0;i&lt;[resources count];i++)
      {
          Record *aRecord = [resources objectAtIndex:i];</p>
  
  <pre><code>    temp=aRecord.programID;
      if(i==0)
          pid=temp;
      else
      //i am using this one to cancatenate but is not working why?
  </code></pre>
  
  <p>pid = [NSString stringWithFormat:@"%@%@%@", pid,comma,temp];
      }</p>