Redim array
BlitzMax Forums/BlitzMax Beginners Area/Redim array
| ||
How would i do this? Thanks Matt |
| ||
myarray = myarray[..newsize] |
| ||
Thanks. But now i'm getting an error which says incorrect number of array dimensions...but thats not right as i'm using 3 throughout. |
| ||
tiles=[xSize,ySize,3] Should be tiles = New Int[xSize,ySize,3] |
| ||
Nah, it should be: tiles = New Int[ xSize + 1, ySize + 1, 3 + 1 ] Since he's accessing the xSize-th element. |
| ||
Ok this is a worrying error...unable to convert from Int Array to Int Array? Surely it shouldnt need to convert it? |
| ||
How did you define it? It should be something likeGlobal tiles:Int[,,]for a 3-dimensional array. Michael's right about the sizes, by the way. |