Re: Line too long ???
- From: "Stark" <franco.jommi@xxxxxx>
- Date: Thu, 18 Oct 2007 12:04:17 +0200
I'll try this one as well.. But I still don't understand what happened and why. All of the other sources are ok.
<alanglloyd@xxxxxxx> ha scritto nel messaggio news:1192485317.761099.153050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 12 Oct, 18:22, "Stark" <franco.jo...@xxxxxx> wrote:This time I copied everything to the Notepad, made my chages there and
saved as a .txt file. The I renamed it .pas and Delphi was happy and it
compiled ok. I still need to understand what I should do to prevent this
thing..
Its difficult to prevent when you're adding strings from another
source with different linebreak standards. Perhaps you should write a
small app to select a file with a TOpenDialog and which passes the
filepthname to a procedure like ...
procedure CorrectLineBreaks(FPN : string);
var
SL : TStringList;
Str : string;
begin
SL := TStringList.Create;
try
SL.LoadFromFile(FPN);
Str := SL.Text;
AdjustLineBreaks(Str);
SL.Text := Str;
SL.SaveToFile(FPN);
finally
SL.Free;
end;
end;
AdjustLineBreaks() and loading/saving to a stringlist should sort it
out for you.
Alan Lloyd
.
- References:
- Line too long ???
- From: Stark
- Re: Line too long ???
- From: Rudy Velthuis
- Re: Line too long ???
- From: Stark
- Re: Line too long ???
- From: Rudy Velthuis
- Re: Line too long ???
- From: Stark
- Re: Line too long ???
- From: Rudy Velthuis
- Re: Line too long ???
- From: Stark
- Re: Line too long ???
- From: alanglloyd@xxxxxxx
- Line too long ???
- Prev by Date: buy runescape gold on www.runescape-gold-shop.com
- Next by Date: Re: Line too long ???
- Previous by thread: Re: Line too long ???
- Next by thread: Re: Line too long ???
- Index(es):
Relevant Pages
|