Home All Groups Group Topic Archive Search About

Combobox, Count Entries

Author
17 Apr 2006 3:18 AM
Bernie Hunt
I have a combo box on a form. It's entries are loaded from a database. Once
the box is loaded, is there a way to ask it how many items it has?

Or should I just count the number of items added and I'm adding them?

The application is two comboboxes used by the user to select min and max
search criteria. By default the first will be preset to the lowest item and
the other will be preset to the last item in the list. Both boxes will be
loaded with the same list of items.

Thanks for any ideas,

Bernie

Author
17 Apr 2006 3:27 AM
Cerebrus
Have you tried querying ComboBox.Items.Count ?
Author
17 Apr 2006 3:35 AM
Bernie Hunt
"Cerebrus" <zorg***@sify.com> wrote in news:1145244438.891866.157370
@z34g2000cwc.googlegroups.com:

> Have you tried querying ComboBox.Items.Count ?
>
>

Argh!!!!!!!!!!!!!

I couldn't find that in the docs, so I didn't bother looking in the IDE to
see if it would work. Works fine, sorry for the stupid question!

Bernie
Author
17 Apr 2006 4:00 AM
Cerebrus
No problemo !

Happy coding,

Regards,

Cerebrus.