Jump to content
Sign in to follow this  
Mita

dynamic array control deletion

Recommended Posts

Mita

- Figured Out -

Sorry, can't delete post.

incase you are woundering...

Func _DeletePuzzleGUI()
   Local $thisRow = 0
   Local $thisCol = 0
  
   MsgBox(1,"location","delete")
   ; Delete any existing groups/combos
   While ($thisRow < $puzzleSize)
   While ($thisCol < $puzzleSize)
   GUICtrlDelete($combo_puzzle[$thisRow][$thisCol][0])
   $thisCol += 1
   WEnd
   $thisCol = 0
   $thisRow += 1
   WEnd
  
   $thisRow = 0
   $thisCol = 0
   While ($thisRow < $boxSize)
   While ($thisCol < $boxSize)
   GUICtrlDelete($group_puzzle[$thisRow][$thisCol])
   $thisCol += 1
   WEnd
   $thisCol = 0
   $thisRow += 1
   WEnd
   MsgBox(1,"location","deleted puzzle")
EndFunc
Edited by Mita

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×