Hi there everyone. I am working on a math game where students can make their own custom game patterns. I am working on a way for students to be able to delete custom patterns down the road.
So far I have this..
Basically the name of the pattern is in the LoadGameNameTXT.text. I am trying to get the code to search for it in the CustomGameList listbox, and if found remove it from the listbox, but I am getting a type mismatch error on this line..
CustomGameList.RemoveItem srch_stringzg
Can anyone tell me what I did wrong? :)
Thanks!!
So far I have this..
VB Code:
Dim iczg As Integer Dim srch_stringzg As String srch_stringzg = LoadGameNameTXT.text 'or whatever you want to search for For iczg = 0 To CustomGameList.ListCount - 1 If CustomGameList.List(iczg) = srch_stringzg Then CustomGameList.RemoveItem srch_stringzg End If Next iczg
Basically the name of the pattern is in the LoadGameNameTXT.text. I am trying to get the code to search for it in the CustomGameList listbox, and if found remove it from the listbox, but I am getting a type mismatch error on this line..
CustomGameList.RemoveItem srch_stringzg
Can anyone tell me what I did wrong? :)
Thanks!!