New topic: Problem with listbox.RemoveRow
<http://forums.realsoftware.com/viewtopic.php?t=46355> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Antonio Post subject: Problem with listbox.RemoveRowPosted: Wed Dec 26, 2012 5:05 pm Joined: Sat Feb 04, 2012 1:26 pm Posts: 58 Location: Italy Hi, I am practicing with the listbox. I have two different listboxes and I wish to: double click one of the many raws inside listbox 1, add that row to listbox 2, remove that row from listbox 1 and so on. this is the code I wrote: Listbox1.cell(listbox1.listcount,-1) = listbox2.cell(Listbox2.ListIndex,-1) Listbox2.RemoveRow(listbox2.ListIndex) Problem arise when i doubleclick on the same row, faster, let's say 1 times a second, giving me an outofboundesexception error on the listbox2.RemoveRow(listbox2.ListIndex). If I click even faster, but on different rows, the problem doesn't arise. any suggestions? thanks for any help. Antonio Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
