V4RB and Valentina and Rich Text Format
jda
jda at his.com
Tue Aug 11 10:44:43 CDT 2009
>
>
>But even RAM-based REALBasic API provides in clean way two parts of RTF:
> text and style.
Hi Ruslan,
That's not RTF he is storing. It is text (characters) and style
(binary). RTF is only text (and contains formatting markup).
Instead of saving the text and text style separately, you can
save/restore the actual rtf itself (in RB, this is
StyledText.RTFData).
If you do save/restore the text and TextStyleData separately, beware
that you can run into endian issues when you restore the
editfield/textarea. That is, if you save the TextStyleData on a big
endian machine (i.e. a PPC Mac) and then move the db to an Intel Mac,
the TextStyleData will no longer be valid. You'd have to convert it
to little endian.
Jon
More information about the Valentina-beta
mailing list