I have a requirement to take the contents of a TDBRichEdit with some bolded text and drop it out to a text file with all bolded characters converted to uppercase.
So for example:
Would need to look like this after processing:
The code I'm trying to generate would work out how big the RichEdit is, processess it character by character and then copy each character to a TMemo or a string that I could then write out to a text file.
I'm sort of familiar with this in that I'd need to select one character from the RichEdit at a time and check for fsBold in the style properties and then act accordingly on that, but if someone would be able to give me a decent example on the selecting the characters one at a time, I'd greatly appreciate it.
Thanks
Steve
stephen.wales@riotinto.com
So for example:
Code:
[b]This[/b] sentence needs to be [b]processed[/b]
Would need to look like this after processing:
Code:
THIS sentence needs to be PROCESSED
The code I'm trying to generate would work out how big the RichEdit is, processess it character by character and then copy each character to a TMemo or a string that I could then write out to a text file.
I'm sort of familiar with this in that I'd need to select one character from the RichEdit at a time and check for fsBold in the style properties and then act accordingly on that, but if someone would be able to give me a decent example on the selecting the characters one at a time, I'd greatly appreciate it.
Thanks
Steve
stephen.wales@riotinto.com