iHero Posted June 14, 2013 Author Share Posted June 14, 2013 **Introduction**There is no code in the delete button in the editor shop.**Client~Side**At the end of the _frmEditor_Shop_ add:```Private Sub cmdDelete_Click() Dim tmpIndex As Long ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler ClearShop EditorIndex tmpIndex = lstIndex.ListIndex lstIndex.RemoveItem EditorIndex - 1 lstIndex.AddItem EditorIndex & ": " & Shop(EditorIndex).Name, EditorIndex - 1 lstIndex.ListIndex = tmpIndex ShopEditorInit ' Error handler Exit Suberrorhandler: HandleError "cmdDelete_Click", "frmEditor_Shop", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```**Credits**Ricardo Link to comment Share on other sites More sharing options...
Wortel Angels Posted June 14, 2013 Share Posted June 14, 2013 Nice i fixed that already and wanted to create an Tutorial but i forgot it >.< Link to comment Share on other sites More sharing options...
Zopto Posted June 15, 2013 Share Posted June 15, 2013 > Nice i fixed that already and wanted to create an Tutorial but i forgot it >.<trolololo xDAnd nice ricardo tnx Link to comment Share on other sites More sharing options...
iHero Posted June 15, 2013 Author Share Posted June 15, 2013 Thanks xD Link to comment Share on other sites More sharing options...
kurenai Posted November 20, 2014 Share Posted November 20, 2014 Thanks ;) Link to comment Share on other sites More sharing options...
Growlith1223 Posted November 20, 2014 Share Posted November 20, 2014 ![](http://www.minerwars.com/ForumUploads/20101115002739_181_necropost.png) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted November 20, 2014 Share Posted November 20, 2014 Oh well, I didn't even think I needed this till now, thanks for raising it XD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now