Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList bug/inconsistency
DropList bug/inconsistency [message #38818] |
Sun, 20 January 2013 11:09 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Program crashes with following code:
...
DropList dl;
dl.Add("A");
dl.Add("B");
dl.Add("C");
...
dl.SetIndex(dl.FindValue("D"));
...
My opinion is that the current index should clear any selection when it is set to -1
As it is currently I have to Clear() and re-populate the droplist, this is not right, the return values of FindKey()/FindValue() should be handled by SetIndex()
|
|
|
Goto Forum:
Current Time: Sat Jun 08 09:36:07 CEST 2024
Total time taken to generate the page: 0.02255 seconds
|