Expression in Expression

edited April 2014 in FastReport 4.0
Hi,
How can we use Expression in Value when report get value event .

Example :

i have one MemoView in report with Text "[a]" ,

and GetValue event of report is :
procedure TForm1.rep1GetValue(const VarName: string; var Value: Variant);
begin
  if(VarName = 'a') then
    Value:= 'first with [b] item'
  else if VarName = 'b' then
    Value:= 'second';
end;

i want report : "first with second item".

Thanks

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.