How to copy multiple select in listbox ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • peterzuma
    Forum Member
    • Oct 2006
    • 13

    How to copy multiple select in listbox ?

    Who anybody help me ?

    I have tried but my code not success.Please help me
  • Imagine Programming
    Indigo Rose Customer
    • Apr 2007
    • 4252

    #2
    Why don't you show that code... i don't know what you mean
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment

    • RizlaUK
      Indigo Rose Customer
      • May 2006
      • 5552

      #3
      you need to loop through the selected index table

      ie: untested code, may contain typo's, AMS is not installed on this machine
      Code:
      tbSel=ListBox.GetSelected("ListBox")
      if tbSel then
          for index, nSelected in tbSel do
             local LBText=ListBox.GetItemText("ListBox",nSelected)
             local LBData=ListBox.GetItemData("ListBox",nSelected)
             -- do whatever with text and data here
      
          end
      end
      Embrace change in your life, you never know, it could all work out for the best

      Comment

      Working...
      X