Re: Need A Quick Fix

new topic     » goto parent     » topic index » view thread      » older message » newer message
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))  
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu