Hello everybody.
Again I have my structure
Public Structure GatesPositions
Public pos As Integer
Public stack As Stack
End Structure
and an array of the defined type
Public UsrCheckerGates() As GatesPositions
How can I delete the element or elements of the array that the stack count is zero????
It is an array and I don't know how can I delete a random item. I wish there was a method, but nothing like that. I thought to copy elements with non zero count stack to another array and delete all elements from UsrCheckerGates and recopy them to the UsrCheckerGates() array again, but I wish I could do that in a simplest way. Any suggestions please???
Any help will be much appreciated.
Thank you very much
in advanced.
Again I have my structure
Public Structure GatesPositions
Public pos As Integer
Public stack As Stack
End Structure
and an array of the defined type
Public UsrCheckerGates() As GatesPositions
How can I delete the element or elements of the array that the stack count is zero????
It is an array and I don't know how can I delete a random item. I wish there was a method, but nothing like that. I thought to copy elements with non zero count stack to another array and delete all elements from UsrCheckerGates and recopy them to the UsrCheckerGates() array again, but I wish I could do that in a simplest way. Any suggestions please???
Any help will be much appreciated.
Thank you very much
in advanced.