realbasic-nug
[Top] [All Lists]

Re: styledEdit in a DB field

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: styledEdit in a DB field
From: "Peter K.Stys" <pstys at ohri dot ca>
Date: Tue, 4 Jan 2005 16:13:25 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BDFF229B dot CA7C%william at realsoftware dot com> <3A69E10E-5DF5-11D9-82E6-0003937B30CE at classonesoftware dot com> <AE3CD5D6-5E06-11D9-9FF6-000393955B3C at tampabay dot rr dot com> <6041816D-5E09-11D9-BACE-000A9578809A at epicodeinteractive dot com> <2F0F2E6A-5E4F-11D9-A0A3-000D936D8B62 at athenet dot net>
I just save the styleEditFld's text (readable text) and style info (binary data, usually I EncodeBase64 it to send to a PostgreSQL back-end server) in 2 separate DB fields, then recombine these whenever the field contents need to be read in. Quite easy and reliable.

Peter.


On 4 Jan 2005, at 7:50 AM, Adam Ernst wrote:



On Jan 3, 2005, at 10:30 PM, beto wrote:

Hi Rich,

If you are trying to save a styled text in a REALdatabase, someone here mention something about converting it to RTF. I did not know how to do the conversion but I am still interesting on saving styled text in a REALdatabase. Let me know if you find out how.

Well, you could use my StyledTextToRTF classes:

www.cosmicsoft.net/RB/StyledTextToRTF.html

However, to get the RTF data back to REALbasic StyledText, you'd need to use the Belle-Nuit RTFParser:

http://www.belle-nuit.com/realbasic/rtfparser.html

Adam Ernst
cosmicsoft

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

------------------------------------------------------------------------ -------
Peter K. Stys, MD
Professor of Medicine, Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa 
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
------------------------------------------------------------------------ -------

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>