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: "Greg O'Lone" <rbnuglist@stretchedout.com>
Date: Thu, 29 Jan 2009 18:34:10 -0500
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: <498238EF.4010801@cowgar.com>
References: <498238EF.4010801@cowgar.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Jeremy,

What are you trying to accomplish? There are a number of approaches (including some that use memoryblocks for speed), but if you just want to deal with a string, why not:

myString = "John Doe had a dog. "

or are you expecting the data to come into your program in pieces?

Greg

On Jan 29, 2009, at 6:17 pm, Jeremy Cowgar wrote:

What is the quickest/best way to build a string? For instance:

myString = "John Doe"
myString = myString + " had "
myString = myString + " a "
myString = myString + " dog. "

is probably not the best way. Is there a class out there that deals with a buffer and expands the buffer when necessary?

myBuf.Append "John Doe"
myBuf.Append " had "
... etc ...

Jeremy


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

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


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