Paul McNett wrote:
> Paul McNett wrote:
>> Sibylle Koczian wrote:
>>> self.Choices = ["unknown"] + names
>>> self.Keys = [0] + pks
>>>
>>> That works, now "unknown" is selected and the info log message disappears. 
>>> But 
>>> does it really mean a dropdown list must have an entry with key 0, even if 
>>> completely artificial? 
>> No, but thanks for finding the source of this message (I've been 
>> wondering myself). Somewhere we are certainly saying "lst.Value = 0" 
>> when in fact we should be saying 'lst.PositionValue=0'.
> 
> I didn't fix whatever something is setting lst.Value to 0, but I did 
> clean up listbox behavior when its Value gets set to a non-existent key. 
> Now, nothing is selected in that case.
> 
> Please try out the latest subversion trunk.
> 
> Paul

I think if a listbox value is set to an non existing key there should be
a error message. Why should a value for a non existing key should be
unnoticed?

Uwe


_______________________________________________
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