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: Charles Yeomans <yeomans at desuetude dot com>
Date: Tue, 4 Jan 2005 11:53:02 -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>

On Jan 3, 2005, at 11:11 PM, Richard Gross wrote:

Been through the archives with mixed results on this one:

Can I store a styled edit field by storing the style as a variant and the text as a varchar in an RBDatabase?

If not, is there a consensus on how to do this? Currently I'm storing this as invisible files on disk. Ugly.

If the RbDB implements binary fields, then you can simply store the style data in a binary field. Otherwise, use EncodeBase64 to encode the style data and store it in a VarChar field.


--------------
Charles Yeomans

_______________________________________________
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>