Announcement

Collapse
No announcement yet.

How to select all indexes of combobox

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

  • herrin
    replied
    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

    Leave a comment:


  • colc
    replied
    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:	148
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

    Leave a comment:


  • telco
    replied
    you dont put your listbox in a variable..

    Leave a comment:


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

    Leave a comment:


  • Ulrich
    replied
    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

    Leave a comment:


  • Ezekiel Bucknor
    replied
    Pls teach me how to select multiple indexes using the listbox

    Leave a comment:


  • Ezekiel Bucknor
    replied
    Thanks so much

    Leave a comment:


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

    Ulrich

    Leave a comment:


  • Ezekiel Bucknor
    started a topic How to select all indexes of combobox

    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
Working...
X