String operation , Replace

edited July 2009 in FastReport 4.0
Hallo,

I'm looking to an operation like StringReplace in Delphi (Means convert string '4,5' to '4.5').

Also I'm looking for a pascal script-Referenz.


Maybe, somebody has an idea.

Comments

  • pacoescribapacoescriba Spain
    edited 5:12AM
    You can use this function in FastScript
    function StringReplace(before:String;Old:string;New:string):string;
    var
      temporal:string;                           
    begin
      temporal := before;                                                                                                                     
      DeleteStr(temporal,Pos(Old,Before),length(Old));
      Insert(temporal,New,Pos(Old,Before));                                                                              
      result := temporal;                                          
    end;
    
    saxy wrote: »
    Hallo,

    I'm looking to an operation like StringReplace in Delphi (Means convert string '4,5' to '4.5').

    Also I'm looking for a pascal script-Referenz.


    Maybe, somebody has an idea.
  • gordkgordk St.Catherines On. Canada.
    edited March 2011
    you can also get the additional function library package from Stalker
    http://stalker4.dp.ua/en/

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.