:: Forum >>

(i) or ([i])??

I am trying a combo. I realized I can use

combo.setSelectedItems(i);
combo.setCurrentItem(i);

or,

combo.setSelectedItems([i]);
combo.setCurrentItem([i]);

No errors on both usage. If I use combo.setCurrentItem([i]), I always get 0 when using combo.getCurrentItem(). That is only difference I know. Could you explain all differences for both usages?

Thanks,
mrhsh
Tuesday, May 6, 2008
setSelectedItems([i]); // expects an array of item indices
setCurrentItem(i); // expects single index
Alex (ActiveWidgets)
Tuesday, May 6, 2008

This topic is archived.


Back to support forum

Forum search