Joined: 28 Nov 2013
Online Status: Offline
Posts: 3
Topic: format Posted: 02 Dec 2013 at 2:35pm
I have a text field that I want to change the color of font when additional text is added. When additional text is added it starts off with a : to show its new.
I tried
If audit.notes like : then crRed else crBlack
Instr() function will check entire string for a particular value and gives you the position of the value. If you have ':' in between your string also it will change the string color to Red.
Left() will check only first character, if first character is ':' then it will change the string color to Red
You want to change entire string color to Red or only ':' (i.e. first character)
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 04 Dec 2013 at 4:56am
It is a quandry. While CR itself will let you manipulate bolding and size etc in a text object at design time, it won't let you do the same programically...there it is all or nothing.
DBlank came up with a work around, in that you take 2(or more) formulas and drop them into the same text object, this way they will display correctly (no awkward spacing issues) and you can manipulate the font values (size, boldness, color) individually for each formula.
It is sure to take more work, but should allow you to do what you are after.
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