realbasic-nug
[Top] [All Lists]

Re: difficulty with dictionaries/collections

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: difficulty with dictionaries/collections
From: John Kubie <jkubie at mac dot com>
Date: Thu, 1 Jun 2006 01:17:24 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060531222922 dot 436B67F01F at swarthymail-a3 dot dreamhost dot com>
I ended up using this and it works beautifully.

Strings work here; arrays don't; but, as Joe shows, strings have some of the functionality of arrays.

(I did try wrapping an array in a class; it seemed like it should have worked, but I couldn't get 'correct' values out of it).

John Kubie

On May 31, 2006, at 6:29 PM, joe at strout dot net wrote:


  if dict.HasKey( name ) then
     dict.Value( name ) = dict.Value( name ) + "," + str(blobNumber)
  else
     dict.Value( name ) = str(blobNumber)
  end if

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


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