Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text format and colour to the text in script

Hi All

I need to define a field in script with the below  text format

my text format is 'Segoe Script'

and i want to assign a colour to it in the script  red

so when ever i call it on the front end it should come as red  colur and my text format should be "Segoe Script"

say i created letter

load * inline

[

'A'  as  myfield,(in the script  with Segoe Script format and redcolour to it)

];

output is as below

my field

5 Replies
Anonymous
Not applicable
Author

Setting the font in Setup / Document Property / Font does not work for you?

fonte.JPG

MK9885
Master II
Master II

Why do you need it in script when you can do it in front end as shown by Marcio above. It's much easier where you have no fields to add

Not applicable
Author

yes aravind good question, i know there is a option as shown by marico , but i want only a particualr format of text as field

Anonymous
Not applicable
Author

I made this suggestion because I do not think I can do what you want.

MK9885
Master II
Master II

You can use

SET vRed = RGB(128,0,0);

and then use if condition in script to create a field for color.

Temp:

if(A=10,$(vRed)) as RedColor

Resident YourTable Name;

And use Redcolor field in dimensions for Background Color

I do not know how to do for Text Format but this doesn't serve any purpose except we get a fixed color, which can also be given as red() instead of this field.