Home » U++ Library support » U++ Widgets - General questions or Mixed problems » ColumnList - Set(Value key, Value val) - Working right?
ColumnList - Set(Value key, Value val) - Working right? [message #28190] |
Sat, 21 August 2010 16:55 |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
I have the following code:
Value id = codelist.GetData();
codelist.Set(id, "Hello World!")
It does not change the selected item. Instead it seems to be changing the item at an index of "id".
This code works as expected:
int idx = codelist.Find(id);
codelist.Set(idx, ~d.value);
From Assist++ it seems that .Set(Value key, Value val) should set it based on key, thus the first example should have worked?
Jeremy
|
|
|
Goto Forum:
Current Time: Tue May 07 23:45:08 CEST 2024
Total time taken to generate the page: 0.04017 seconds
|