Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Index: Combobox[I].Text? (https://www.askmehelpdesk.com/showthread.php?t=223552)

  • Jun 5, 2008, 12:57 PM
    rmolenaar
    Index: Combobox[I].Text?
    Hello,

    I want to use a for.. next-loop to scan several items (e.g. Text/ Color) of a few comboboxes. To make the program efficient, I need something like an index register.
    Is it possible to approach any item of an comboxbox by index register?

    Greetings Roy
  • Jun 22, 2008, 05:38 AM
    melondotnet
    Yes, each value is an item.

    For I = 1 To 10

    tValue = ComboBox1.Item(I - 1) ' Ithink Items are numbered 0,1,2,3 not 1,2,3,4

    Next

    Note: If I am on the wrong end of the stick, please say.

  • All times are GMT -7. The time now is 04:47 AM.