My list box entries contain 4 Unicode strings: { ???, ???, ???, ??? }
I tried auto selecting a row in a list box with:
ListBox1.Selected(2) = True
also tried
ListBox1.ListIndex = 2
Neither of them work.
However, if I change the list box contents to plain English to {red, violet, yellow, blue} it works. I see it selects correctly.
Is this a known bug with Unicode strings?
I am using Xojo 2015 R2.4 on Windows 7 64-bit
Thanks,
Works here with either method in a button under Windows 10 with 2015R2.4.
Here too. OSX 10.10.5 2013r3.3
@MIchael B.
Did you copy paste my strings? I am doing this in my
Main Window-> Open event.
[quote=220973:@Siva K]@MIchael B.
Did you copy paste my strings? I am doing this in my
Main Window-> Open event.[/quote]
Yes, I pasted from what you posted. I would not know how to type that.
No issue in window Open event either.
You probably have additional code that is the cause. May project contains only a listbox and a button.
OK I figured it out.
I had
App->Open also initializing the ListBox1.Selected(0) = True
along with
Window->Open initializing the ListBox1.Selected(2) = True
Looks like the App->Open takes precedence.
Issue Resolved