Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Add Color inside a variable Post Reply Post New Topic
Author Message
EddiRae
Newbie
Newbie


Joined: 29 Aug 2008
Online Status: Offline
Posts: 30
Quote EddiRae Replybullet Topic: Add Color inside a variable
    Posted: 15 Apr 2013 at 4:58pm
Hello,
I have a variable that has the chr(13) embedded in it.  This variable is placed on the report footer and reflects some totals for all of the lines on the report.

What I want to do is be able to highlight a specific row in this variable.  Is this possible?

Here is my code.  So let's say if I get to row 5, i want the background to be yellow.  How could you do that?

WhilePrintingRecords;
numbervar array aTrial;
numbervar array aFVC;
numbervar array aFEV1;
numbervar array aPEF;
numbervar position;
stringvar Result := "";


for position := 1 to 20 do
(
    if aTrial[position] > 0 then
    (
        Result := Result & chr(13) & totext(aTrial[position],0);
    )
);

Result;

Thanks for the help
Eddi Rae
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 16 Apr 2013 at 5:56am
if you are saying that within the formula editor you want to highlight a row of the code, that is not possible.  But in the report you want to highlight every fifth row, that might be possible.
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.023 seconds.