Mike Mabey wrote:
> ValueError: Trying to set dDropdownList1.Value to these invalid selections:
> [0L]
> 
> I'm really trying to understand this traceback on my own, because I'm sure
> you're getting sick of my emails, but I can't see what in my code could be
> causing this.  I've added debugging print satements in the onUpdate() method
> for the dropdown list, and none of them print, which suggests to me that I'm
> probably looking in the wrong place for what's causing the error.  Any
> suggestions?

The dropdown list is getting set to a Value of 0. The Keys property 
doesn't have a key on 0. That is the direct cause of the error.

Okay, I know that you were originally trying to get this to work with 
the default ValueMode of "String", with Choices of ["1", "2", "3", "4"]. 
However I then gave you an example using ValueMode of "Key" which it 
appears you are still using.

Just for giggles, please set these properties in the radiolist:

Choices = ["< zero >", "1", "2", "3", "4"]
Keys = {0:0, 1:1, 2:2, 3:3, 4:4}
ValueMode = "Key"


Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to