Re: Need A Quick Fix
- Posted by irv Nov 05, 2019
- 1316 views
Icy_Viking said...
Thanks for all the help guys. It was a slight oversight on my part. I have it fixed.
procedure Remove_Game(integer self, integer event, sequence parm) deleteItem(Game_List,1) end procedure setHandler(Game_List_Remove,w32HClick,routine_id("Remove_Game"))
Note: the code above will always remove the first item, if you want to remove the selected item, you need to get the selection by calling
getIndex(Game_List)
You could try doing it as follows, but should test to see what happens when no item is selected. (And what happens if multiple items can be selected)
deleteItem(Game_List,getItem(Game_List))