How to change the content of a ppDBMemo
Hello
i'm using RB 7.02 and i'm trying to change the color of the font of a
ppDBmemo whith the content of the the memo.
for example if the 1st char of the content is 1 then the font color is red
else the font color is blue.
and also remove the first char of the memo.
Before using a memo i've do this with a ppDBText and it work perfectly but
now i have to use a multiline control.
Can you help me please ?
Thank's in advance
i'm using RB 7.02 and i'm trying to change the color of the font of a
ppDBmemo whith the content of the the memo.
for example if the 1st char of the content is 1 then the font color is red
else the font color is blue.
and also remove the first char of the memo.
Before using a memo i've do this with a ppDBText and it work perfectly but
now i have to use a multiline control.
Can you help me please ?
Thank's in advance
This discussion has been closed.
Comments
The DBMemo object was not designed to have its text altered on the fly,
however it is possible to assign a new font color in the
DetailBand.BeforePrint event. I would suggest using a TppMemo object and
also in the DetailBand.BeforePrint event, retrieving the data and altering
it before assigning it to the TppMemo.Text property and setting its font
color.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com