Getting a TMemoField To A TRichEdit
Posted on 1999-01-04
I have Paradox table with a memo field called 'Results'. I didn't realize until recently that Delphi considers this a TMemoField. So I've been trying to find some way to get my 'Results' data from the Paradox memo field into my TRichEdit component named 'Editor'. However, I have one slight twist to add to my dilema. I want to display 3 sets 'Results' records to give a 3 column look.
My initial thought was to copy the text in each record to 3 temporary TMemos called p1, p2, and p3. I would then be able to extract each line from p1, p2, and p3 and add them to a string. Then take the string and add it to the 'Editor' via Editor.Lines.Add().
What I need is to either:
A) get the code to get the my text from the Paradox memo field to a TMemo component so that I can get the lines of text and go about what I started to do.
B) get the code that does everything, ie. gets the text from the Paradox memo field to the 'Editor' displayed in 3 columns.
I will gladly give upto 400 points for option B. I will accept option A or B.