![]() ![]() ![]() ![]() | Table Of Contents | Index |
MarxMenu supports multidimensional arrays up to 31 dimensions. Unlike other programming languages, arrays need not be declared. MarxMenu creates arrays "on the fly" and automatically takes care of the array size and number of dimensions.
Another unusual feature of MarxMenu arrays is that they are an array of MarxMenu variables. This means that elements of MarxMenu arrays need not be of the same type. Element 1 can be a number, element 2 can be a string and element 3 can be another array.
This type of variable management leads to the easy creation of very powerful data structures as you will see.
Var XThese are all valid statements. MarxMenu creates a two dimensional array here. If we now execute the following statement:X[1] = 'Element 1' X[2] = 3 X[3] = True X[4,6] = 9 X[4,7] = 'Ten'
X[4] = X[4,6] + X[2]X[4] becomes equal to 12 but variables X[4,6] and X[4,7] are lost. This is because we have changed an array into a number. MarxMenu automatically handles the deallocation of memory used by this array and its elements and returns the space the used to the memory pool.
![]() ![]() ![]() ![]() | Table Of Contents | Index |
|