Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

colour the value while displayin

Former Member
0 Likes
627

hello friends,

i am working on a classical report.

now i have a condition that if the value is below a certain value then the colour should be RED or else the colour should be BLUE.

i am using the following code for colour

WRITE : (10) itab-act COLOR 5, '|' CENTERED.

but this is making the whole block coloured,i only want the value to be in RED or BLUE..

what to do for that ????

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

HI,

use keyword FORMAT INTENSIFIED ON before write statement..

....................

....................

for ex:

format intensified on.

write: 'suresh' color 5.

write:/10 'babu' color 6.

color no's are from 0 -6.

intensified -- to display text as chosen color.

inverse --- to display background on text with chosen color.

if helpful reward some points.

with regards,

Suresh Aluri.

HI,

use keyword FORMAT INTENSIFIED ON before write statement..

....................

....................

for ex:

format intensified on.

write: 'suresh' color 5.

write:/10 'babu' color 6.

color no's are from 0 -6.

intensified -- to display text as chosen color.

inverse --- to display background on text with chosen color.

if helpful reward some points.

with regards,

Suresh Aluri.

3 REPLIES 3
Read only

former_member386202
Active Contributor
0 Likes
605

Hi,

Use format inverse On. before your write statement.

Regards,

Prashant

Read only

0 Likes
605

Use :

FORMAT COLOR 5. "5 is the color number

FORMAT COLOR OFF - to switch off the color

Regards,

GURU

Read only

Former Member
0 Likes
606

HI,

use keyword FORMAT INTENSIFIED ON before write statement..

....................

....................

for ex:

format intensified on.

write: 'suresh' color 5.

write:/10 'babu' color 6.

color no's are from 0 -6.

intensified -- to display text as chosen color.

inverse --- to display background on text with chosen color.

if helpful reward some points.

with regards,

Suresh Aluri.