realbasic-nug
[Top] [All Lists]

Re: Slow Listboxes

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Slow Listboxes
From: Joe Strout <joe@inspiringapps.com>
Date: Thu, 26 Feb 2009 15:20:34 -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: <88E37F47-5D8C-4287-A659-453183198F6A@tolisgroup.com>
Organization: Inspiring Applications, Inc.
References: <6D601607-8A05-41AF-9FE4-D22102080EC4@mac.com> <F4A04EFB-FF75-4560-9DF7-6F42265D2A5E@mac.com> <D4CA7E04-94E4-4890-AF87-DDE004483400@mac.com> <88E37F47-5D8C-4287-A659-453183198F6A@tolisgroup.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)
Tim Jones wrote:

I dumped NthField for Split quite a while back. Create an array and use Split, passing the same delimiter as for NthField, and then just grab the array member that you would have grabbed with NthField's field value -1 (NthField counts from 1).

Or if you're going to grab all of them, you can just do:

  for each fld As String in Split(data, delim)
    ...
  next fld

Simpler, more elegant, AND substantially faster. It's like dating a supermodel Ph.D. gourmet cook. (OK, well, maybe not EXACTLY like that.)

Cheers,
- 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>