This is a blue moon.
AnsiString as = "This is a ";
// OK so far...
I am puzzled as to how I might underline one word in a line of text being added or inserted into an ansistring within a Memo object.
Form1->Memo1->Font->Style = TFontStyles() << fsUnderline;
has the unfortunate effect of rewriting the whole of the existing text in the memo object in the underlined style. To reiterate- I want just one word underlined.
Is there a way to exert more precise control over what gets written to the memo object?