Topic: Replace string in FastReport!

Hi,
I just need to replace yes with JA and no with Nein in Report designer!
How can I do that ?
because variable come from booleans in MVDB are in english sad
Thanks a lot

Re: Replace string in FastReport!

Hello,


I suggest using calculate field for that, example:

CASE BoolField WHEN 1 THEN 'Ja' WHEN 0 THEN 'Nein' ELSE '' END

This calculated field you can add to report and use in a TableGrid.

Dmitry.

Re: Replace string in FastReport!

Thanks a lot smile
And one more problem!
Dear Dimitri, I have a date field with type of Time in my project.
in database it is Time field again!
But in reports it shows strange things!

For example for 22:23:44 it shows : 22:September:44

How can I fix this too ?
thanks again smile

Re: Replace string in FastReport!

sonixax wrote:

Thanks a lot smile
And one more problem!
Dear Dimitri, I have a date field with type of Time in my project.
in database it is Time field again!
But in reports it shows strange things!

For example for 22:23:44 it shows : 22:September:44

How can I fix this too ?
thanks again smile

Please attach your project for test.

Dmitry.