title: crystal reports error : remaining text does not appear to be part of the formula
body: <p>I'm receiving an error in my crystal report: </p>
  
  <p>The reminaing text does not appear to be part of the formula.  the highlighted area in question is between the 2 **'s when the error is thrown.</p>
  
  <p>Here is my formula in Crystal Syntax.</p>
  
  <pre><code>numbervar pos;
  stringvar cpu;
  
  if (Length ({_v_hardware.CpuDesc}) &gt;2) then 
  (
  pos := instr({_v_hardware.CpuDesc},",");
  cpu ='{_v_hardware.CpuDesc}';
  
  ) 
  else 
  (
  //cpu := {_v_hardware.CpuDesc2};
  pos := instr({_v_hardware.CpuDesc},",");
  cpu ={_v_hardware.CpuDesc};
  )
  
  **//replace({_v_hardware.CpuDesc},"    ","")
  if (pos &gt; 0) then
  (
  replace(replace(replace(left(cpu, pos-1),"    ",""), "Pentium(R) III",""),"Pentium III","");
  )
  else 
  (
  replace(cpu,"    ","");
  )**
  </code></pre>
  
  <p>Any ideas what might be causing this error? </p>
  
  <p>thanks in advance</p>