Re_Dimension Array of Types

BlitzPlus Forums/BlitzPlus Programming/Re_Dimension Array of Types

Mental Image(Posted 2007) [#1]
If I have created an array of types as follows:


Type	Meeting			

	Field Leader$			
	Field Project_Number$	
	Field StartTime	
	Field EndTime			

End Type

;now define an array of types 
Global storage.Meeting Dim All_Storage.Meeting((Slots * Year_Days * Room_Total)-1)



If I have created instrances of the type and then re-dimension the array, will that automatically delete the previously created type instances (through garbage collection), or do I have to do it myself?


Beaker(Posted 2007) [#2]
You have to delete them yourself. B+ doesn't have any garbage collection.


Mental Image(Posted 2007) [#3]
Thanks for that. If I create new instances as follows:

					All_Storage(pointer) = New Meeting


where "pointer" can be any number within the array (because I don't always have every array position filled), is there any easy way that I can delete every instance of that type, or do I have to go:

							Delete All_Storage(pointer)	


for every instance created? Sorry if this seems basic, but I am re-using someone else's code for types within arrays.