trichview.com

trichview.support




Re: Loading texts with empty lines


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/08/2002 12:44:56


1) About an empty line at the beginning.

LoadText does not clear document before adding text.

Editor initially has one empty text item, and LoadText adds text from the

file after it.

Solution: Call Clear before LoadText

2) About missing empty lines

This is actually a bug of LoadText (other text adding/insertion functions do

not have it).

If you are a registered user, open CRVData.pas, find function AddStringFF

and add as a second statement (after "if ProcessPageBreaks then begin"):

        if s='' then

          AddString(s, ConvertToUnicode, AsSingleParagraph, FirstTime,

PageBreak);

If not, wait for next update.



>

> I have a problem with subject. I try to save doc like this:

>

> "line 1

>

> line 2"

>

> and when I load it using LoadText function I receive:

> "

>

> line1

> line2

> "

> I use default TRVStyle and TRichViewEdit.

>

> Where I'm wrong? Why I have an empty line as first item?

>

>

>











Powered by ABC Amber Outlook Express Converter