Dynamic Arrays
Blitz3D Forums/Blitz3D Programming/Dynamic Arrays| 
 | ||
| Is it possible to have dynamic arrays? What i mean by this is create an array that can be made bigger at run time? Cheers | 
| 
 | ||
| You can re-dim an array at anytime, but you will lose it's contents. | 
| 
 | ||
| Blitz has two kinds of arrays: basic arrays (Dim a(10)) and type arrays (Field x[10]). The first kind is global and cannot be passed to functions, the second is limited to a static number of elements. To get around the limitations of Blitz's arrays, you could use banks. Check out my solution: Container: vector | 
| 
 | ||
| Cheers octothorpe. I'll take a look at that tonight! :) |