trichview.support
Re: Loading texts with empty lines |
Author |
Message |
Mik Fedorov |
Posted: 03/09/2002 4:03:42 "Sergey Tkachenko" <svt@trichview.com> wrote: >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 Thanks, it works now. >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 made this :-) SL:= TStringList.Create; SL.LoadFromFile(filename); for i:=0 to SL.Count-1 do begin rve.AddNL(SL[i],0,0); end; |
Powered by ABC Amber Outlook Express Converter