468,301 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

ComboBox

Can anyone tell me the differance between the Index and ListIndex property of
combobox. i am using listindex from long ago but never used Index property so please also tell me how to use it.
Nov 17 '06 #1
2 1201
albertw
267 100+
Can anyone tell me the differance between the Index and ListIndex property of
combobox. i am using listindex from long ago but never used Index property so please also tell me how to use it.
hi

index is the number of a e.g. listbox array
listindex is the 'linenumber' within the listbox
Nov 17 '06 #2
Killer42
8,434 Expert 8TB
Can anyone tell me the differance between the Index and ListIndex property of
combobox. i am using listindex from long ago but never used Index property so please also tell me how to use it.
I see you've already had one response, but allow me to expand on it a little.

The .Index property is used when you create a control array. That is, a number of controls of the same type on the same form, with the same name, just differentiated by their index number, much the same as an ordinary variable array. It's a useful and efficient way of dealing with a bunch of similar controls on a form. So regardless of what type of control it is, Index has nothing to do with the contents.

You already know what ListIndex is for.
Nov 19 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by Mr. B | last post: by
3 posts views Thread by TT (Tom Tempelaere) | last post: by
2 posts views Thread by Don | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.