list1(1).sorted = true
why doesnt that work? i get a cannot assign to read-only property error
Printable View
list1(1).sorted = true
why doesnt that work? i get a cannot assign to read-only property error
Set it at design time from the properties on the right.
cant do that using arrays.... unless i load the object without using the code to load the array object, but i dont know how many arrays i will need, so that wouldnt work.
Dont think you can change the sort during runtime, and it's false by default.
Yes you can. Select the list box and set it in the properties window, i did it.
Quote:
Originally posted by Ideas Man
Yes you can. Select the list box and set it in the properties window, i did it.
you can do it with a normal listbox, but not with an array that you load with your code. you cannot select a listbox where it cannot be seen
He is creating them at runtime, how are you going to access the properties when it doesn't exist?
Quote:
Originally posted by Ideas Man
Yes you can. Select the list box and set it in the properties window, i did it.
Dunno, I'd say you could when you create it, i don't actually know how to create controls in code.
We'll if all else fails, use a temp listbox, .visible = false, sorted = true.
Then transfer items there to sort them (clear sorter first), move them back to the source (source cleared first) then clear the sorter (just to make sure its clear).