# What does the X,Y,Z dimensions of the Array object mean?

• 12th June 2016, 05:44 PM
ASD
What does the X,Y,Z dimensions of the Array object mean?
I can write the string to array object at exceed on defined dimensions by property.
I think "dimensions" is limit to prevent to write data into the Array object.
What does the X,Y,Z dimensions of the Array object mean?
• 12th June 2016, 05:47 PM
Sumo
What does the X,Y,Z dimensions of the Array object mean?
The dimensions are like rows and columns. Think of a grid. The horizontal rows would be the Y dimension and the vertical columns would be the X dimension. Similar to X and Y axis on a graph. The Z dimension acts as multiple arrays stacked on top of each other.

So if you write a string in cell (1,3,2) assuming it's following (x,y,z) the cell would be located in the first column, third row down, in the second array.

Check the properties of the array object. You have to define it as either a value or string array. Then you need to specify how large the array dimensions are in the properties. You're probably trying to write a string to either a value array or your trying to write in a cell outside of your dimension parameters.

Sent from my iPhone using Tapatalk
• 12th June 2016, 08:13 PM
schrodinger
I think ASD could be asking:
"why I can write outside dimensional limit I set?
What are dimensions used for, since I can bypass them?"

If this was the question,
preset dimensions are mainly to take into account for:

1) memory allocation / disk space on saving

2) performance reasons

presetting a number array to a big size will make its memory / save size already at max-size it can get
while with text array changes happen more gradually and the array become bigger while you write on them, makes less difference

expanding the array (writing outside its boundaries) is a complex operation that takes time to perform
(and much more if you use many Z-indices)
you won't notice any issue while indices are low and you expand few times,
but it will make a big difference if you're going to write a lot of data to the array, in short times

I remember testing that expanding an array one-step-at-time (i.e. adding one "X row" at time)
for writing from a 5000 index on, made the array perform as a list object,
and much more slow than the list from then on
while if you don't expand the array during runtime it is 50 times faster than a list (25 times faster than a hidden list)
• 14th June 2016, 03:46 AM
ASD
@ schrodinger
> 1) memory allocation / disk space on saving
Ah understood. Thanks!