Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Can you do calculations in a text object Post Reply Post New Topic
Author Message
merrittr
Newbie
Newbie


Joined: 29 May 2018
Location: Canada
Online Status: Offline
Posts: 9
Quote merrittr Replybullet Topic: Can you do calculations in a text object
    Posted: 14 Jun 2018 at 4:53am
what I am wondering is if you can insert a mathematical operator between 2 fields on a TEXT OBJECT and have it work?

I have a case where I have dragged 2 fields I a sql expression field (denominator)

and 2 sum in a grouping so it looks like this

<Text Object>{Sum of @del_ammount_over500k}/{%totalBalanceOfLoans}</Text Object>

I just types the "/" in between them thinking that it would just do the mathematical operation. is there a eval() type function that makes the / be taken leteral?

Edited by merrittr - 14 Jun 2018 at 5:05am
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 14 Jun 2018 at 11:16am
No.  The fields would have to be in a formula.  I have never used the eval function.  Not sure how it works.
IP IP Logged
merrittr
Newbie
Newbie


Joined: 29 May 2018
Location: Canada
Online Status: Offline
Posts: 9
Quote merrittr Replybullet Posted: 14 Jun 2018 at 11:20am
OK thanks Kevlray

I might be out of luck then.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 15 Jun 2018 at 7:19am
Why can't you put a formula inside of a text box?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.