Announcement

Collapse
No announcement yet.

Help im stuck with this ListBox im a new with this software

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

  • Help im stuck with this ListBox im a new with this software

    Hello All !

    First i will explain the problems : Im using 1 ListBox and 1 xButton and i enter some data to list box but if im clicked all of data in list box has running mean not selected by the listbox and what must i do to fix it ?
    i use code like :
    if ListBox.GetSelected("ListBox1", "Mi 4C Libra") then
    Shell.Execute("AutoPlay\\Docs\\BYP\\Mi 4C Libra\\Libra.bat", "open", "", "", SW_SHOWNORMAL, true);

    elseif ListBox.GetSelected("ListBox1", "Mi 4I Ferrari") then
    Shell.Execute("AutoPlay\\Docs\\BYP\\Mi 4I Ferrari\\Ferrari.bat", "open", "", "", SW_SHOWNORMAL, true);
    end

    but if i select one of this data the data is all run not 1 by 1

    thanks

  • #2
    hi dev ListBox.GetSelected("ListBox1"); see ? ListBox accepts just one input parameter

    Comment


    • #3
      Originally posted by startup View Post
      hi dev ListBox.GetSelected("ListBox1"); see ? ListBox accepts just one input parameter
      so what must i do dude ? to select the data separately in 1 list box ?

      Comment


      • #4
        sel = ListBox.GetSelected("ListBox1")
        data = ListBox.GetItemData("ListBox1", sel[1]);
        text = ListBox.GetItemText("ListBox1", sel[1]);

        Comment


        • #5
          example


          ListBox.apz

          Comment

          Working...
          X