title: Array Manipulation in Crystal Reports 2008 - Not displaying correct result
body: <p>I am very new to Crystal Reports (2days old), I am trying to loop through an <code>array</code> of <code>strings</code> and check for a particular value. If that value exists modify that value.</p>
  
  <p>I am doing all this in the record selection formula. But the code is not behaving as expected. Please let me know the issue with the code:-</p>
  
  <pre><code>Local numberVar i;
  
  For i := 1 to ubound({?Partner_Name}) Do
  
  (
  
       IF {?Partner_Name}[i] = 'Lincoln - MN' Then
            {?Partner_Name}[i] = 'Lincoln'
       Else If{?Partner_Name}[i] = 'LINCOLN - UT' Then
            {?Partner_Name}[i] = 'LINCOLN'
       Else
            {?Partner_Name}[i] = {?Partner_Name}[i]
  );
  
  {Command.PARTNER_NAME} = {?Partner_Name}
  </code></pre>
  
  <p>Any Help is appreciated.. Thanks in advance</p>