Page 1 of 1

Combo Box itemData does not support the indexOf method

Posted: Fri Aug 07, 2009 2:48 pm
by ConvertFromOldNGs
by scott >> Fri, 16 Jan 2004 4:38:29 GMT

Hi,
We try to use the method indexOf to find whether the combo box itemData has included some one item, but it seems that the itemData does not support the indexOf method. We also tried the includes method, it also did not work correctly. We can use the findString to do it instead of indexOf method. But why the itemdata does not support the method indexOf or includes? You can use attached sample schema to see detail.

Please advise.

Scott
Bizpoint System Pte Ltd.

Re: Combo Box itemData does not support the indexOf method

Posted: Fri Aug 07, 2009 2:48 pm
by ConvertFromOldNGs
by scott >> Fri, 16 Jan 2004 9:26:44 GMT

Hi,
The attached file is scanned by McAfee.

Scott
Bizpoint System Pte Ltd

Re: Combo Box itemData does not support the indexOf method

Posted: Fri Aug 07, 2009 2:48 pm
by ConvertFromOldNGs
by Dr J. >> Mon, 19 Jan 2004 0:11:25 GMT

Interesting behaviour but unfortunately I can't offer any suggestions. I note that the code works as expected with an IntegerArray but not with the itemData property on a combo which appears to be of type InternalPseudoArrayInteger.

Perhaps the InternalPseudoArrayInteger class does not correctly implement indexOf?