On 1/30/09 8:16 AM, "Jeremy Cowgar" <jeremy@cowgar.com> wrote:
> In your testing, that was the quickest way?
I don't know about Charles, but in my testing, without resorting to a
plug-in, that was the fastest way.
If you know ahead of time the maximum number of elements your string will
have, it might be faster to allocate the array first:
dim arr( 10 ) as string
arr( 0 ) = "John Doe"
arr( 1 ) = " had "
etc..
My guess, without having tested it, is that this is faster than using Append
as long as you don't overdue it. Dimensioning the array to, say, 1 million
elements when your string won't have more than 10 is probably slower, but
this is easy enough to test.
__________________________________________________________________________
Kem Tekinay (212) 201-1465
MacTechnologies Consulting Fax (914) 242-7294
http://www.mactechnologies.com Pager (917) 491-5546
To join the MacTechnologies Consulting mailing list, send an e-mail to:
mactechnologies_consulting-subscribe@yahoogroups.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|