Board index » cppbuilder » Loading text into richedit from a TStringList using Add()..
Rory Walsh
![]() CBuilder Developer |
Loading text into richedit from a TStringList using Add()..2006-03-07 12:14:11 AM cppbuilder91 I have a function that accepts two AnsiStrings as paramters. In the function I use a TRichEdit->Add() method to add the text from the AnsiStrings to the rich edit. The problem is that at one point I want to add all the lines from a TStringList to my function. I have been using the ->Text property but that results in all the lines in the TStringLists be inserted on teh same line of the RichEdit rather than under each other. Is there an easy way to sort this or do I need to pass the entire TStringList, access and Add() each line separately? I know their are several ways of doing it, I'm just curious to see which is the best and most efficient way. Cheers, Rory. |