Combo Box itemData does not support the indexOf method

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Combo Box itemData does not support the indexOf method

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:48 pm

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.
Attachments
3302_1.zip
(3.75 KiB) Downloaded 164 times
Last edited by ConvertFromOldNGs on Fri Aug 07, 2009 4:08 pm, edited 1 time in total.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box itemData does not support the indexOf method

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:48 pm

by scott >> Fri, 16 Jan 2004 9:26:44 GMT

Hi,
The attached file is scanned by McAfee.

Scott
Bizpoint System Pte Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box itemData does not support the indexOf method

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:48 pm

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?


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 20 guests

cron