antago
01-05-2008, 03:44 PM
So I have this test to load information from an account, then it searches through a combobox to see which item matches the information in the account and then it stops on that item. In other words, it loads the information stored in the account for that combobox to select that item in the combobox.
There is an item called "1.8" in the combobox and data "1.8" in this.pheight. The item "pheight.pheight" is the combobox. "this.pheight" refers to "result2_lv". This is fine, because I have a "year.year" combobox which is an integer result and it uses "this.year" variable for the account information, and it indeed does work. It finds and stops on the selected item in the combobox matching the year.
My question is, is there something really strange about comparing "1.8" to "1.8" that makes this not work?? Someone please help.
if (this.pheight==0) {
pheight.pheight.selectedIndex = 0;
} else {
while (pheight.pheight.selectedItem.label != this.pheight) {
pheight.pheight.selectedIndex ++;
}
}
There is an item called "1.8" in the combobox and data "1.8" in this.pheight. The item "pheight.pheight" is the combobox. "this.pheight" refers to "result2_lv". This is fine, because I have a "year.year" combobox which is an integer result and it uses "this.year" variable for the account information, and it indeed does work. It finds and stops on the selected item in the combobox matching the year.
My question is, is there something really strange about comparing "1.8" to "1.8" that makes this not work?? Someone please help.
if (this.pheight==0) {
pheight.pheight.selectedIndex = 0;
} else {
while (pheight.pheight.selectedItem.label != this.pheight) {
pheight.pheight.selectedIndex ++;
}
}