PDA

View Full Version : How to copy multiple select in listbox ?


peterzuma
06-24-2008, 11:31 AM
Who anybody help me ?

I have tried but my code not success.Please help me

Imagine Programming
06-25-2008, 09:00 AM
Why don't you show that code... i don't know what you mean

RizlaUK
06-25-2008, 09:16 AM
you need to loop through the selected index table

ie: untested code, may contain typo's, AMS is not installed on this machine
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