Announcement

Collapse
No announcement yet.

How to select all indexes of combobox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to select all indexes of combobox


    In my project I have to select all the items in a combobox, is there a way doing that

  • #2
    A ComboBox allows a single selection only. If you need to allow multiple selections, use a ListBox instead...

    Ulrich

    Comment


    • #3
      Thanks so much

      Comment


      • #4
        Pls teach me how to select multiple indexes using the listbox

        Comment


        • #5
          You can use the ListBox.SelectItem() action to select one or all items. See the third example in the documentation, which appears to be what you want.

          Ulrich

          Comment


          • #6
            Please help me here, I appreciate any help you give me.
            Am getting this error, is there a way to solve this.

            Comment


            • #7
              you dont put your listbox in a variable..

              Comment


              • #8
                Ezekiel Bucknor , your code in pic makes NO Sense.
                Have you selected Multiselect in options of listbox
                Click image for larger version

Name:	LB Mult.png
Views:	144
Size:	9.0 KB
ID:	305955
                OK I've done a quick example of how to select an item / items in listbox
                [ATTACH]n305956[/ATTACH]
                Please study code

                Cheers

                Comment


                • #9
                  Code:
                  tSelected = ListBox.GetSelected("ListBox1");
                  
                  if tSelected then
                  
                  sText = ListBox.GetItemText("ListBox1", tSelected[1]);
                  Table.Concat(tSelected,",",1,1)
                  Application.SaveValue("Value", "Key", sText);
                  
                  end

                  result in
                  HKEY_CURRENT_USER\Software\Indigo Rose\ACData\Value

                  Comment

                  Working...
                  X