Article View: borland.public.delphi.database.dotnet
Article #105Re: Reading text from DB into RichTextBox problem
From: Viatcheslav V. Vassiliev
Date: Fri, 11 Aug 2006 08:07
Date: Fri, 11 Aug 2006 08:07
31 lines
2066 bytes
2066 bytes
You need to have line breaks in BLOB (Memo) field, not #13#10. #13#10 exist only in source code and is converted to CRLF during compilation. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Brigitte Spatz" <brigitte.NOSPAMspatz@svenmahn.de> ???????/???????? ? ???????? ?????????: news:op.td3vfcb0i0jcwv@acer... Why is it that RichTextBox1.Text := 'blablabla'#13#10#13#10'blablabla'; displays correctly as "blablabla blablabla" but as soon as I read the very same text (including single quotes and all) from a database record field, all I get is "'blablabla'#13#10#13#10'blablabla'"? That's not what I need :-( What do I have to do to the text in the DB so that it displays line breaks when read out and assigned to the Text property of a RichTextBox? TIA. Brigitte
Technical Details
Message-ID:
<44dc3ab6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<op.td3vfcb0i0jcwv@acer>Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,bb16778a91aa2ccb X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.delphi.database.dotnet References: <op.td3vfcb0i0jcwv@acer> Subject: Re: Reading text from DB into RichTextBox problem Date: Fri, 11 Aug 2006 12:07:14 +0400 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 0632-2, 10.08.2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <44dc3ab6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155283638 85.93.138.132 (11 Aug 2006 01:07:18 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail