realbasic-nug
[Top] [All Lists]

Re: Dictionary Value count

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Dictionary Value count
From: tom dot russell at transport dot alstom dot com
Date: Tue, 31 May 2005 09:47:58 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Sensitivity:
Ok got that. But if I do this I get an outofbounds:

  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?


Thanks,


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