realbasic-nug
[Top] [All Lists]

Re: Quickest way to build a string?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Quickest way to build a string?
From: Joe Strout <joe@inspiringapps.com>
Date: Thu, 29 Jan 2009 16:55:37 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <49823E47.1010903@cowgar.com>
Organization: Inspiring Applications, Inc.
References: <498238EF.4010801@cowgar.com> <E51786AC-94C3-411B-B0FC-1E74A0D453CA@stretchedout.com> <49823E47.1010903@cowgar.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
Jeremy Cowgar wrote:

So, I am parsing it, when I get a chunk parsed (say "= Heading 1" should be "{\fs24 Heading 1}\par "), then I am appending the appropriate "RTF Prefix", the text and the appropriate "RTF Suffix" to a string, that in the end will be a string suitable for saving as a RTF file.

Append each chunk to a string array, and then write them out (still as an array) when you're done. If for some other reason you actually need all the data as one string, then use Join as Karen suggested.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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