realbasic-nug
[Top] [All Lists]

Re: Dictionary Value count

To: RBNUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Dictionary Value count
From: Seth Duke <seth at johnfinley dot com>
Date: Tue, 31 May 2005 10:03:09 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
On 5/31/05 9:47 AM, "tom dot russell at transport dot alstom dot com"
<tom dot russell at transport dot alstom dot com> wrote:

>   for i = 0 to listbox1.listCount - 1
>     prefsDict.value("runs_"+str(i)+"_0") = listbox1.cell(i,0)
>     prefsDict.value("runs_"+str(i)+"_1") = listbox1.cell(i,1)
>     prefsDict.value("runs_"+str(i)+"_2") = listbox1.cell(i,2)
>     prefsDict.value("runs_"+str(i)+"_3") = listbox1.cell(i,3)
>   next
> 
> 
> Is it because the value is a variant rather than a string?

If its throwing you an OutOfBounds I would assume that your grabbing data
from a nonexistent column. Are you sure there are 4 columns?

-Seth


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