RichEdit.Lines.Text

Since I use Delphi XE2 RichEdit.Lines.Text dosn't work.

I do this:

Child.Visible := Trim(RichEdit.Lines.Text) > '';

RichEdit.Lines.Text is always empty, although the Text is printing on the Report.

I want to determine if the Richedit is empty.
How can I do that?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:59PM
    try working in the oad event
    sample of stripping white space
    stripwhitespace from rich edit
    procedure Rich1OnAfterData(Sender: TfrxComponent);
    var
    i: Integer;
    s: String;
    begin
    i := Rich1.RichEdit.Lines.Count - 1;
    while i >= 0 do
    begin
    s := Rich1.RichEdit.Lines;
    if Trim(s) = '' then
    Rich1.RichEdit.Lines.Delete(i)
    else
    break;
    Dec(i);
    end;
    end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.