title: String trouble in Rave Reports 8
body: <p>We are currently working with Delphi 2006, but we are now <i>very</i> ready to move on to Delphi 2010.</p>
  
  <p>The problem lies in our Rave reports, though...</p>
  
  <p>We just get to many string errors when running our reports with Rave 8.  And they just don't make any sense.  (The reports compile with no error, and we can even run them without any error in Rave 6.)</p>
  
  <p><B>Update:</B>
  The errors occurs inside the event scripts in the reports itself.  The errors are related to strings and string concatenation.</p>
  
  <p>For instance:</p>
  
  <pre><code>//This event causes access violation (in rtl140.bpl) at run time
  { Event for Page1.OnBeforeReport }
  function Page1_OnBeforeReport(Self: TRavePage);
  var
    s: String;
  begin
    s := 'My text in param';
    s := s + ' and som more text';
    s := copy(s,1,length(s)) + ' and then some more';           //&lt;-- This line causes AV
    RaveProject.SetParam('MyTestParam', s);
  end OnBeforeReport;
  
  
  //This event works OK
  { Event for Page1.OnBeforeReport }
  function Page1_OnBeforeReport(Self: TRavePage);
  var
    s: String;
  begin
    s := 'My text in param';
    s := s + ' and som more text';
    s := copy(s,1,length(s));                                   //&lt;-- This line is OK
    RaveProject.SetParam('MyTestParam', s);
  end OnBeforeReport;
  
  
  //This event works OK too
  { Event for Page1.OnBeforeReport }
  function Page1_OnBeforeReport(Self: TRavePage);
  var
    s: String;
  begin
    s := 'My text in param';
    s := s + ' and som more text';
    s := copy(s,1,length(s)) + s;                               //&lt;-- This line is OK
    RaveProject.SetParam('MyTestParam', s);
  end OnBeforeReport;
  </code></pre>
  
  <p>We really want to stick to Rave, because we have a lot of reports (150+) with a lot of functionality (sql statements, events etc).  Besides, we have customers who have designed their own custom reports as well.</p>
  
  <p><b>
  Does anybody know the reason for these errors?<br>
  Is there any solution or workaround to these problems?
  </b></p>