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 11:39AM
    Use in the TfrxMemoView something like:
    [IIF(<YourDatasetName."Fee_unit"> = 'Percent', <YourDatasetName."Fee"> / 100 * <YourDatasetName."NumberOfPatients">, <YourDatasetName."Fee"> * <YourDatasetName."NumberOfPatients">)]
    

Leave a Comment