Help - Search - Members - Calendar
Full Version: Replace string in masterdata
Fast Reports forum > Fast Reports Products > FastReport 4.0
qartal84
Hello.
I have Fr3 file. and in this file there masterdata.
in this masterdata there is column that is named as [frxDBMain."salary"]

and i have one problem.
in my salary column there is some values that equal to zero.
i want to replace this 0 values with '-'.
can you help me?
Anu de Deus
Test this carefully, might not display correctly under some circumstances (try with lots of records in the dataset):

CODE
procedure memo1OnAfterData(Sender: TfrxComponent);
var
  lTxt : string;
begin
  lTxt := VarToStr(Value);  // lTxt is not required, but good for debugging                            
  if lTxt = '0' then                
     TfrxMemoView(sender).text := '';
end;
qartal84
Thank you.
your code solved my problem.
again thanks a lot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.