Marie O' Driscoll wrote:I think the problem is the array scope of definition. Because I defined shapeVals within a local block of code, it's not recognised (or maybe destroyed) when the block of code ends and I can't then use it outside the closing bracket. The only way around this that I can see if to define shapeVals at the top of my code but that would mean I would again need to specify the size of the array and I won't know that until I read a value for shapeLength.
Marie O' Driscoll wrote:I think the problem is the array scope of definition. Because I defined shapeVals within a local block of code, it's not recognised (or maybe destroyed) when the block of code ends and I can't then use it outside the closing bracket. The only way around this that I can see if to define shapeVals at the top of my code but that would mean I would again need to specify the size of the array and I won't know that until I read a value for shapeLength.