Custom function

Hello guys,

I have been recently converting my Crystal Reports to Fast Reports and a issue has just arisen.
In Crystal Reports, we have function fields that we can add to perform an operation that we want,
like the following:

if (`Fee_unit`==Percent)
{
FeeTotal = (`Fee` divided by 100) * `Number of patients`;
}
else
{
FeeTotal = `Fee` * `Number of patients`;
}

What would be the equivalent way to add these formulas from Crystal Reports to Fast Reports ? I have been
looking but I cannot find it.

Thank you ! =)

Comments

  • gpigpi
    edited 1:29AM
    Use in the TfrxMemoView something like:
    [IIF(<YourDatasetName."Fee_unit"> = 'Percent', <YourDatasetName."Fee"> / 100 * <YourDatasetName."NumberOfPatients">, <YourDatasetName."Fee"> * <YourDatasetName."NumberOfPatients">)]
    

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.