comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Combobox / Droplist index problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Combobox / Droplist index problem [message #40261] Fri, 30 July 2004 07:53 Go to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <8f9f5929.0407300202.20215269@posting.google.com>, "Jacques
Basson" <basson@cyclops.nu.ac.za> wrote:


> I have stumbled across a problem with retrieving the index in a combobox
> if you have some items with identical text.

I think the point of combobox is that you don't need to rely on the index
number, you get the value returned in the event (ev.str). Comboboxes also
allow the user to write their option in (if you allow it :) in which case
a -1 is returned for the index.

I suspect the combobox is returning the first result from a naive WHERE
command, hence the -1 when the selection isn't found in the original
list.

Also, what's the difference between the first '2', and the second '2'? How
does the user differentiate between them if they have the same labels?

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Translate characters/string size to data/normal coordinates?
Next Topic: serial port

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 06:03:26 PDT 2025

Total time taken to generate the page: 0.00465 seconds